From 19e76cdd87cf35fbff716552940624fb92b3bda9 Mon Sep 17 00:00:00 2001 From: Joe Kaufeld Date: Fri, 22 Jul 2022 22:20:07 -0400 Subject: [PATCH] github actions is literally the worst --- .github/workflows/build_and_release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index 5c27265..f4e42af 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -22,11 +22,14 @@ jobs: run: poetry install - name: build the sucker run: make build + # https://stackoverflow.com/a/64195658 + - name: Add SHORT_SHA env property with commit short sha + run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV - uses: ncipollo/release-action@v1 with: artifacts: "utils" body: "It's releasin' time" generateReleaseNotes: true - tag: ${{ github.sha }} + tag: ${SHORT_SHA} commit: master token: ${{ secrets.PAT }}