Skip to content

Commit

Permalink
github: add git hash to upload file names
Browse files Browse the repository at this point in the history
  • Loading branch information
dlech committed May 2, 2023
1 parent a044e59 commit f4c532e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,14 @@ jobs:
- name: List failed tests
if: failure()
run: micropython/tests/run-tests.py --print-failures
- name: Short hash
id: vars
run: echo "short_sha=$(echo ${{ github.sha }} | cut cut -c1-8)" >> $GITHUB_OUTPUT
- name: Upload pybricks-micropython
if: ${{ success() }}
uses: actions/upload-artifact@v3
with:
name: pybricks-micropython-build-${{ github.run_number }}
name: pybricks-micropython-build-${{ github.run_number }}-git${{ steps.vars.outputs.short_sha }}
path: bricks/ev3dev/build-armel/pybricks-micropython

ev3dev_ubuntu_lts:
Expand Down Expand Up @@ -214,11 +217,14 @@ jobs:
if: ${{ success()}}
working-directory: bricks/${{ matrix.hub }}/build
run: unzip firmware.zip -d upload
- name: Short hash
id: vars
run: echo "short_sha=$(echo ${{ github.sha }} | cut cut -c1-8)" >> $GITHUB_OUTPUT
- name: Upload firmware
if: ${{ success()}}
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.hub }}-firmware-build-${{ github.run_number }}
name: ${{ matrix.hub }}-firmware-build-${{ github.run_number }}-git${{ steps.vars.outputs.short_sha }}
path: bricks/${{ matrix.hub }}/build/upload/*

virtualhub:
Expand Down

0 comments on commit f4c532e

Please sign in to comment.