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:
Victor Seiji Hariki 2022-12-28 23:03:08 -03:00
parent 428baa4b83
commit 6dedaabe38
2 changed files with 10 additions and 6 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/sh
#!/usr/bin/bash
#
# Updates html files with cache busting urls including file hashes.

View file

@ -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"