Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Add safe directory and follow the suggestion of upload-rpms-action
and use main branch.

Signed-off-by: Jean-Louis Dupond <jean-louis@dupond.be>
Change-Id: I16503d7fafd7fa0a0b474b63e7d67a1e1225e9f3
  • Loading branch information
dupondje authored and sandrobonazzola committed Jul 12, 2023
1 parent f0d4647 commit 507a52c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand All @@ -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/*
Expand Down

0 comments on commit 507a52c

Please sign in to comment.