Skip to content

Commit 358ee11

Browse files
committed
Fix CI
Add safe directory and follow the suggestion of upload-rpms-action and use main branch. Signed-off-by: Jean-Louis Dupond <[email protected]> Change-Id: I16503d7fafd7fa0a0b474b63e7d67a1e1225e9f3
1 parent e9c060e commit 358ee11

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ jobs:
3232
- name: Checkout sources
3333
uses: ovirt/checkout-action@main
3434

35+
- name: Mark git repo as safe
36+
run: git config --global --add safe.directory $(pwd)
37+
3538
- name: Use cache for maven
36-
uses: actions/cache@v2
39+
uses: actions/cache@v3
3740
with:
3841
path: ~/.m2/repository
3942
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -49,12 +52,12 @@ jobs:
4952
.automation/build-rpm.sh $ARTIFACTS_DIR
5053
5154
- name: Upload artifacts
52-
uses: ovirt/upload-rpms-action@v2
55+
uses: ovirt/upload-rpms-action@main
5356
with:
5457
directory: ${{ env.ARTIFACTS_DIR }}
5558

5659
- name: Upload generated documentation artifacts
57-
uses: actions/upload-artifact@v2
60+
uses: actions/upload-artifact@v3
5861
with:
5962
name: generated-documentation-${{ matrix.shortcut }}
6063
path: target/html/*

0 commit comments

Comments
 (0)