From 41befd66261fbee56ebd57d0d664e9e77a29c3f1 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Fri, 27 Mar 2026 16:05:39 -0400 Subject: [PATCH] substring git sha --- .github/workflows/build-resume.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-resume.yaml b/.github/workflows/build-resume.yaml index b6087fd..e362a15 100644 --- a/.github/workflows/build-resume.yaml +++ b/.github/workflows/build-resume.yaml @@ -14,10 +14,14 @@ jobs: runs-on: ubuntu-latest outputs: current-date: ${{ steps.get-date.outputs.current-date }} + commit-sha: ${{ steps.get-sha.outputs.commit-sha }} steps: - name: Get current date id: get-date run: echo "current-date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT + - name: Get first 7 characters of commit SHA + id: get-sha + run: echo "commit-sha=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_OUTPUT build: needs: date-fetch @@ -45,7 +49,7 @@ jobs: uses: softprops/action-gh-release@v1 with: files: result/Alice_Huston_Resume_Software_Engineer.pdf - tag_name: alice-huston-resume-${{ needs.date-fetch.outputs.current-date }}-${{ github.sha }} - body: "Resume PDF built from commit ${{ github.sha }}" + tag_name: alice-huston-resume-${{ needs.date-fetch.outputs.current-date }}-${{ needs.date-fetch.outputs.commit-sha }} + body: "Resume PDF built from commit ${{ github.sha }} on ${{ needs.date-fetch.outputs.current-date }}." env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file