From 507a52c400a09efece6d35ca5ec1b6ef905564e8 Mon Sep 17 00:00:00 2001 From: Jean-Louis Dupond Date: Fri, 26 May 2023 14:35:08 +0200 Subject: [PATCH] Fix CI Add safe directory and follow the suggestion of upload-rpms-action and use main branch. Signed-off-by: Jean-Louis Dupond Change-Id: I16503d7fafd7fa0a0b474b63e7d67a1e1225e9f3 --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fc6831f8..ccedeb6b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,8 +32,11 @@ jobs: - name: Checkout sources uses: ovirt/checkout-action@main + - name: Mark git repo as safe + run: git config --global --add safe.directory $(pwd) + - name: Use cache for maven - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} @@ -49,12 +52,12 @@ jobs: .automation/build-rpm.sh $ARTIFACTS_DIR - name: Upload artifacts - uses: ovirt/upload-rpms-action@v2 + uses: ovirt/upload-rpms-action@main with: directory: ${{ env.ARTIFACTS_DIR }} - name: Upload generated documentation artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: generated-documentation-${{ matrix.shortcut }} path: target/html/*