Skip to content

Commit

Permalink
Undo more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Jun 17, 2024
1 parent d332a5f commit 956acd4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/allowed-refs.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit 956acd4

Please sign in to comment.