diff --git a/.devtools/updatehashes.sh b/.devtools/updatehashes.sh index fe9f270..372b37f 100644 --- a/.devtools/updatehashes.sh +++ b/.devtools/updatehashes.sh @@ -1,4 +1,4 @@ -#!/usr/bin/sh +#!/usr/bin/bash # # Updates html files with cache busting urls including file hashes. diff --git a/.github/workflows/cachebusting.yml b/.github/workflows/cachebusting.yml index b705004..a91d80f 100644 --- a/.github/workflows/cachebusting.yml +++ b/.github/workflows/cachebusting.yml @@ -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"