mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 18:51:54 -05:00
github: use built-in committing for input updates
This commit is contained in:
parent
90859f88f6
commit
726152aa7b
2
.github/workflows/flake-checks.yml
vendored
2
.github/workflows/flake-checks.yml
vendored
|
@ -6,7 +6,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
fetch-depth: 1
|
||||
- uses: cachix/install-nix-action@v20
|
||||
- name: check if flake complies with default style
|
||||
run: nix fmt -- -c .
|
||||
|
|
25
.github/workflows/flake-update-inputs.yml
vendored
25
.github/workflows/flake-update-inputs.yml
vendored
|
@ -9,20 +9,19 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
fetch-depth: 1
|
||||
- name: "git: setup"
|
||||
run: |
|
||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
- uses: cachix/install-nix-action@v20
|
||||
- name: update inputs in flake.lock
|
||||
run: nix flake update
|
||||
- name: check if flake evaluates
|
||||
- name: "flake: update inputs"
|
||||
run: nix flake update --commit-lock-file
|
||||
- name: "flake: check eval"
|
||||
run: nix flake check
|
||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||
- name: "git: push changes"
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
commit_message: "flake: update inputs"
|
||||
branch: master
|
||||
commit_options: '--no-verify --signoff'
|
||||
file_pattern: flake.lock
|
||||
commit_user_name: Flake Bot # defaults to "GitHub Actions"
|
||||
#commit_user_email: my-github-actions-bot@example.org # defaults to "actions@github.com"
|
||||
commit_author: Flake Bot <actions@github.com> # defaults to author of the commit that triggered the run
|
||||
skip_dirty_check: false
|
||||
skip_fetch: true
|
||||
branch: ${{ github.head_ref }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue