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