From e0006e665a95dcd9baebadf4e237ab275f0a5352 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 2 Jan 2024 18:07:51 +0100 Subject: [PATCH] ci: use unique artifact names 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 --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15a0ab0..69ffc36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,14 @@ jobs: git config --global user.email "actions@github.com" 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: | @@ -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/