Skip to content

Commit

Permalink
Use short sha for artifact filename
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahAndrews committed Apr 25, 2023
1 parent f5a2edf commit 6d1d7be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
steps:
- name: Set variables
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Checkout
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -64,7 +68,7 @@ jobs:
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: CANBridge-${{ github.sha }}
name: CANBridge-${{ steps.vars.outputs.sha_short }}
path: CANBridge-artifacts/

# Upload version.txt
Expand Down

0 comments on commit 6d1d7be

Please sign in to comment.