Skip to content

Commit

Permalink
Swap to git_ref
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Apr 18, 2024
1 parent 3bc2de2 commit 330d7e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 330d7e1

Please sign in to comment.