Update SRI hash #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Update SRI hash" | |
on: | |
workflow_dispatch: | |
jobs: | |
update_sri_hash: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
with: | |
token: ${{secrets.REPO_CONTENT_UPDATE_TOKEN}} | |
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | |
- name: Cache install Nix packages | |
uses: mtoohey31/cache-flake-attrs@v2 | |
with: | |
key: ${{ runner.os }}-nix-${{ hashFiles('./flake.nix') }} | |
flake_paths: ".#regenSRI" | |
- name: re-generate SRI | |
run: "nix --extra-experimental-features nix-command --extra-experimental-features flakes run .#regenSRI" | |
- name: Commit & Push updated SRI | |
uses: actions-js/push@v1.4 | |
with: | |
message: "chore: Update SRI hashes" | |
branch: ${{github.ref_name}} |