change tag generation
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:
|
||||
|
||||
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:
|
||||
needs: date-fetch
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -35,7 +45,7 @@ jobs:
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
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 }}"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user