diff --git a/.automation/build-srpm.sh b/.automation/build-srpm.sh index c221788..b55de7f 100755 --- a/.automation/build-srpm.sh +++ b/.automation/build-srpm.sh @@ -3,6 +3,9 @@ # Directory, where build artifacts will be stored, should be passed as the 1st parameter ARTIFACTS_DIR=${1:-exported-artifacts} +# Mark current directory as safe for git to be able to parse git hash +git config --global --add safe.directory $(pwd) + # Prepare source archive [[ -d rpmbuild ]] || mkdir -p rpmbuild diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5980a4e..c553ace 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,10 +31,10 @@ jobs: steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: ovirt/checkout-action@main - name: Use cache for maven - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}