diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml index 64ff845a4906bf541b12fcbf7f04c5eafc43ee1b..f278e7b840f77ccd030a6130d9e15524b807626c 100644 --- a/.github/workflows/freebsd.yml +++ b/.github/workflows/freebsd.yml @@ -47,11 +47,20 @@ jobs: with: bot-token: ${{ secrets.VKTEAMS_BOT_TOKEN }} + - name: Calculate short name for Tarantool branch + if: failure() + run: > + echo "SHORT_BRANCH_NAME=$(basename ${{ matrix.tarantool-branch }})" >> + $GITHUB_ENV + - name: Upload artifacts uses: actions/upload-artifact@v3 if: failure() with: - name: freebsd-${{ matrix.freebsd-version }}-${{ matrix.tarantool-branch }} + name: ${{ format( + 'freebsd-{0}-{1}', + matrix.freebsd-version, + env.SHORT_BRANCH_NAME) }} retention-days: 21 path: ${{ env.VARDIR }}/artifacts diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index b3af72d21ebc3d78b86ceb141f54094a702561f7..e25dc3f462bab2dea177a40539bd807e594c12dd 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -77,6 +77,12 @@ jobs: with: bot-token: ${{ secrets.VKTEAMS_BOT_TOKEN }} + - name: Calculate short name for Tarantool branch + if: failure() + run: > + echo "SHORT_BRANCH_NAME=$(basename ${{ matrix.tarantool-branch }})" >> + $GITHUB_ENV + - name: Upload artifacts uses: actions/upload-artifact@v3 if: failure() @@ -85,7 +91,7 @@ jobs: 'osx-{0}-{1}-{2}-{3}', matrix.osx-version, matrix.machine-arch, - matrix.tarantool-branch, + env.SHORT_BRANCH_NAME, matrix.build-type) }} retention-days: 21 path: ${{ env.VARDIR }}/artifacts