Compare commits
4 Commits
resume-12
...
alice-hust
| Author | SHA1 | Date | |
|---|---|---|---|
| 41befd6626 | |||
| f3ae240c68 | |||
| 1614e9aed0 | |||
| 6078e15cab |
18
.github/workflows/build-resume.yaml
vendored
18
.github/workflows/build-resume.yaml
vendored
@@ -10,7 +10,21 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
date-fetch:
|
||||
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
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -35,7 +49,7 @@ jobs:
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: result/Alice_Huston_Resume_Software_Engineer.pdf
|
||||
tag_name: resume-${{ github.run_number }}
|
||||
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 }}
|
||||
Reference in New Issue
Block a user