From f41eafe3bddf1d22efd25a163d250e98c14e53ac Mon Sep 17 00:00:00 2001 From: jamesread Date: Thu, 12 Oct 2023 23:22:42 +0100 Subject: [PATCH] cicd: Fix date in artifact name --- .github/workflows/build-snapshot.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-snapshot.yml b/.github/workflows/build-snapshot.yml index fc3b348..12896bc 100644 --- a/.github/workflows/build-snapshot.yml +++ b/.github/workflows/build-snapshot.yml @@ -52,16 +52,20 @@ jobs: version: latest args: release --snapshot --clean --parallelism 1 --skip-docker + - name: get date + run: | + DATE=$(date +'%Y-%m-%d')" >> "$GITHUB_ENV" + - name: Archive binaries uses: actions/upload-artifact@v3.1.0 with: - name: "OliveTin-snapshot-$(date +'%Y-%m-%d')-${{ github.sha }}" + name: "OliveTin-snapshot-${{ env.DATE }}-${{ github.sha }}" path: dist/OliveTin*.* - name: Archive integration tests uses: actions/upload-artifact@v3.1.0 with: - name: "OliveTin-integration-tests-$(date +'%Y-%m-%d')-${{ github.sha }}" + name: "OliveTin-integration-tests-${{ env.DATE }}-${{ github.sha }}" path: | integration-tests !integration-tests/node_modules