auth automerge and run status check in same action

This commit is contained in:
Noah Masur 2023-07-30 09:49:53 -04:00
parent 3e6232cbee
commit 5d6dab3cab
2 changed files with 6 additions and 1 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

@ -20,6 +20,8 @@ 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@v19 uses: DeterminateSystems/update-flake-lock@v19
id: update id: update
@ -28,5 +30,9 @@ jobs:
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 }}