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 4a7c7d9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ 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 }}
echo "name=${name##*/}" >> $GITHUB_OUTPUT
- name: Setup EPEL 8
if: ${{ endsWith(matrix.container, 'stream8') }}
run: |
Expand Down Expand Up @@ -74,6 +80,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 4a7c7d9

Please sign in to comment.