change tag generation
Some checks failed
Build and Release Resume PDF / date-fetch (push) Successful in 2s
Check flake.lock / Check health of `flake.lock` (push) Successful in 7s
Check Nix flake / Perform Nix flake checks (push) Successful in 41s
Build and Release Resume PDF / build (push) Has been cancelled
Some checks failed
Build and Release Resume PDF / date-fetch (push) Successful in 2s
Check flake.lock / Check health of `flake.lock` (push) Successful in 7s
Check Nix flake / Perform Nix flake checks (push) Successful in 41s
Build and Release Resume PDF / build (push) Has been cancelled
This commit is contained in:
12
.github/workflows/build-resume.yaml
vendored
12
.github/workflows/build-resume.yaml
vendored
@@ -10,7 +10,17 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
date-fetch:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
current-date: ${{ steps.get-date.outputs.current-date }}
|
||||||
|
steps:
|
||||||
|
- name: Get current date
|
||||||
|
id: get-date
|
||||||
|
run: echo "current-date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
needs: date-fetch
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -35,7 +45,7 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: result/Alice_Huston_Resume_Software_Engineer.pdf
|
files: result/Alice_Huston_Resume_Software_Engineer.pdf
|
||||||
tag_name: resume-${{ github.run_number }}
|
tag_name: alice-huston-resume-${{ needs.date-fetch.outputs.current-date }}-${{ github.sha }}
|
||||||
body: "Resume PDF built from commit ${{ github.sha }}"
|
body: "Resume PDF built from commit ${{ github.sha }}"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Reference in New Issue
Block a user