Undo more changes

This commit is contained in:
Luc Perkins 2024-06-17 16:48:10 -07:00
parent d332a5f608
commit 956acd4f40
No known key found for this signature in database
GPG Key ID: 16DB1108FB591835

View File

@ -1,11 +1,11 @@
name: Check that supported refs are up to date
name: Check that allowed refs are up to date
on:
schedule:
- cron: "0 0 * * *" # Daily
jobs:
check-supported-refs:
check-allowed-refs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
@ -14,23 +14,23 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check supported refs
- name: Check allowed refs
run: |
nix develop --command cargo run --features supported-refs -- --check-supported-refs
nix develop --command cargo run --features allowed-refs -- --check-allowed-refs
- name: Update supported-refs.json
- name: Update allowed-refs.json
if: failure()
run: |
supported_refs_json=$(nix develop --command cargo run --features supported-refs -- --get-supported-refs | jq .)
echo "${supported_refs_json}" > supported-refs.json
allowed_refs_json=$(nix develop --command cargo run --features allowed-refs -- --get-allowed-refs | jq .)
echo "${allowed_refs_json}" > allowed-refs.json
- name: Create pull request
if: failure()
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update supported-refs.json to new valid Git refs list
title: Update supported-refs.json
commit-message: Update allowed-refs.json to new valid Git refs list
title: Update allowed-refs.json
body: |
Nixpkgs has changed its list of maintained references. This PR updates `supported-refs.json` to reflect that change.
branch: updated-supported-refs
Nixpkgs has changed its list of maintained references. This PR updates `allowed-refs.json` to reflect that change.
branch: updated-allowed-refs
base: main