Skip to content

Commit

Permalink
feat(list): Add a step in the action to add version and commit info.
Browse files Browse the repository at this point in the history
Add a step within the github action that adds both VERSION and COMMIT
info to the PSL list file. This fixes
publicsuffix/list#1808.
  • Loading branch information
cass-moz committed Nov 6, 2024
1 parent 5e108ca commit 877c58d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ jobs:
repository: publicsuffix/list
path: list

- name: Add VERSION and COMMIT to public_suffix_list.dat
working-directory: list/
run: |-
awk -v commithash="$(git rev-parse HEAD)" -v date="$(date -u +'%Y-%m-%d_%H-%M-%S_%Z')" 'NR==8{print "// VERSION: "date; print "// COMMIT: "commithash; print ""} { print }' public_suffix_list.dat > newlist.dat && mv newlist.dat public_suffix_list.dat
- name: Authenticate with GCP
uses: google-github-actions/auth@v0
with:
Expand Down

0 comments on commit 877c58d

Please sign in to comment.