Skip to content

Commit 865e07c

Browse files
authored
Short Hash Releases (#211)
1 parent 6a1e891 commit 865e07c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build_and_release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,19 @@ jobs:
3636
pip install -r requirements.txt
3737
fi
3838
39+
- name: Get short hash
40+
id: git_info
41+
run: |
42+
SHORT_HASH=$(git rev-parse --short HEAD)
43+
echo "short_hash=$SHORT_HASH" >> $GITHUB_OUTPUT
44+
3945
- name: Run per_build.py
4046
run: python3 per_build.py --release --package
4147

4248
- name: Create GitHub Release
4349
uses: softprops/action-gh-release@v2
4450
with:
45-
tag_name: release-${{ github.sha }}
46-
name: Firmware Release ${{ github.sha }}
51+
tag_name: release-${{ steps.git_info.outputs.short_hash }}
52+
name: Firmware Release ${{ steps.git_info.outputs.short_hash }}
4753
files: output/firmware*.tar.gz
4854
prerelease: true

0 commit comments

Comments
 (0)