add hash correction github action
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com> test commit 1 Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com> test2 Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com> test3 Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com> test4 Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com> test5 Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com> test6 Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
parent
428baa4b83
commit
6dedaabe38
2 changed files with 10 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/sh
|
||||
#!/usr/bin/bash
|
||||
#
|
||||
# Updates html files with cache busting urls including file hashes.
|
||||
|
||||
|
|
14
.github/workflows/cachebusting.yml
vendored
14
.github/workflows/cachebusting.yml
vendored
|
@ -9,14 +9,18 @@ on:
|
|||
types: [opened, synchronize, closed]
|
||||
|
||||
jobs:
|
||||
prettier:
|
||||
update_hashes:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- name: Prettify
|
||||
uses: creyD/prettier_action@v4.2
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
- name: Update hashes in html files
|
||||
run: bash .devtools/updatehashes.sh
|
||||
- name: Commit
|
||||
uses: EndBug/add-and-commit@v9.1.1
|
||||
with:
|
||||
prettier_options: --write **/*.{js,html,css,md}
|
||||
author_name: Github Actions
|
||||
author_email: victorseijih@gmail.com # Using my email here for now...
|
||||
message: "Fixed resource hashes"
|
||||
|
|
Loading…
Reference in a new issue