Compare commits

...

4 Commits

Author SHA1 Message Date
Noah Masur
5d6dab3cab auth automerge and run status check in same action 2023-07-30 09:49:53 -04:00
Noah Masur
3e6232cbee fix: update to latest version of updater 2023-07-30 09:38:53 -04:00
Noah Masur
8d72216f13 fix: flake update permissions 2023-07-30 09:37:52 -04:00
Noah Masur
dd36a3bd82 fix: typo 2023-07-30 09:23:29 -04:00
2 changed files with 9 additions and 4 deletions

View File

@ -2,7 +2,6 @@ name: Check Build
on: on:
workflow_dispatch: # allows manual triggering workflow_dispatch: # allows manual triggering
pull_request:
jobs: jobs:
check: check:

View File

@ -6,8 +6,8 @@ on:
- cron: '33 3 * * 0' # runs weekly on Sunday at 03:33 - cron: '33 3 * * 0' # runs weekly on Sunday at 03:33
permissions: permissions:
contents: read contents: write
pull-request: write pull-requests: write
jobs: jobs:
lockfile: lockfile:
@ -20,13 +20,19 @@ jobs:
uses: DeterminateSystems/nix-installer-action@v4 uses: DeterminateSystems/nix-installer-action@v4
- name: Check Nixpkgs Inputs - name: Check Nixpkgs Inputs
uses: DeterminateSystems/flake-checker-action@v5 uses: DeterminateSystems/flake-checker-action@v5
- name: Add Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Update flake.lock - name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v3 uses: DeterminateSystems/update-flake-lock@v19
id: update id: update
with: with:
pr-title: "Update flake.lock" # Title of PR to be created pr-title: "Update flake.lock" # Title of PR to be created
pr-labels: | # Labels to be set on the PR pr-labels: | # Labels to be set on the PR
dependencies dependencies
automated automated
- name: Check the Flake
run: nix flake check
- name: Enable Pull Request Automerge - name: Enable Pull Request Automerge
run: gh pr merge --merge --auto ${{ steps.update.outputs.pull-request-number }} run: gh pr merge --merge --auto ${{ steps.update.outputs.pull-request-number }}
env:
GH_TOKEN: ${{ github.token }}