Skip to content

Commit

Permalink
ci: use unique artifact names
Browse files Browse the repository at this point in the history
Starting from v4, the actions/upload-artifact action does not allow the
same artifact name uploaded by more than one job.

To overcome that, improve the name of the tito build artifact by:
- mentioning it contains RPMs
- adding the container name that generated it
  • Loading branch information
ptoscano committed Jan 2, 2024
1 parent 360ecd5 commit e0006e6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "Github Actions"
- name: Get container name & version
id: container-name
run: |
name=${{ matrix.container }}
name=${name##*/}
name=${name//:/-}
echo "name=${name}" >> $GITHUB_OUTPUT
- name: Setup EPEL 8
if: ${{ endsWith(matrix.container, 'stream8') }}
run: |
Expand Down Expand Up @@ -74,6 +82,6 @@ jobs:
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
name: RPMs for ${{ steps.container-name.outputs.name }}
path: |
tito/

0 comments on commit e0006e6

Please sign in to comment.