From b902f09784297ee4219fbae7ca737c391d8f5995 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Fri, 19 Apr 2024 00:05:41 +0100 Subject: [PATCH] Use default for branch/tag name --- .github/workflows/pio.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pio.yml b/.github/workflows/pio.yml index b2c280e1..1dfb5eaf 100644 --- a/.github/workflows/pio.yml +++ b/.github/workflows/pio.yml @@ -25,15 +25,13 @@ jobs: id: vars run: | git_hash=$(git rev-parse --short "$GITHUB_SHA") - git_branch=${GITHUB_REF#refs/heads/} echo "git_hash=${git_hash}" >> $GITHUB_ENV - echo "git_branch=${git_branch}" >> $GITHUB_ENV - name: Build PlatformIO Project run: pio run - name: 'Upload Artifact' uses: actions/upload-artifact@v3 with: - name: StarMod-esp32-${{env.git_branch}}-${{env.git_hash}}.bin + name: StarMod-esp32-${{env.GITHUB_REF_NAME}}-${{env.git_hash}}.bin path: .pio/build/esp32dev/firmware.bin retention-days: 30