Skip to content

Update SRI hash

Update SRI hash #7

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}}