mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
auth automerge and run status check in same action
This commit is contained in:
parent
3e6232cbee
commit
5d6dab3cab
1
.github/workflows/check.yml
vendored
1
.github/workflows/check.yml
vendored
@ -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:
|
||||||
|
6
.github/workflows/update.yml
vendored
6
.github/workflows/update.yml
vendored
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user