substring git sha

This commit is contained in:
2026-03-27 16:05:39 -04:00
parent 96c10d3bb0
commit c607ed9852

View File

@@ -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 }}