From 330d7e182348ef2ce8d365bf1d2930dbe4d4dfcb Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Fri, 19 Apr 2024 00:44:07 +0100 Subject: [PATCH] Swap to git_ref --- .github/workflows/pio.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pio.yml b/.github/workflows/pio.yml index 02cf1f48..af690a89 100644 --- a/.github/workflows/pio.yml +++ b/.github/workflows/pio.yml @@ -56,13 +56,14 @@ jobs: run: | git_hash=$(git rev-parse --short "$GITHUB_SHA") echo "git_hash=${git_hash}" >> $GITHUB_ENV + echo "git_ref=${GITHUB_REF_NAME}" >> $GITHUB_ENV echo "PLATFORMIO_BUILD_CACHE_DIR=$HOME/.platformio/.cache" >> $GITHUB_ENV - name: Build PlatformIO Project run: pio run -e ${{ matrix.environment }} - name: 'Upload Artifact' uses: actions/upload-artifact@v3 with: - name: StarMod-${{ matrix.environment }}-${GITHUB_REF_NAME}-${{env.git_hash}}.bin + name: StarMod-${{ matrix.environment }}-${{env.git_ref}}-${{env.git_hash}}.bin path: .pio/build/${{ matrix.environment }}/firmware.bin retention-days: 30