-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve auto updates and welcome @infinixbot (#15)
Improves upon the automated update PRs introduced in #12 to resolve issues brought up in the first automated PR #14. * Give more information about the updates, not much, but at least the output of npins update * Update all npins sources, not just Nixpkgs. * Run `cargo update` * Make it trigger CI by using an unprivileged separate machine account (welcome, @infinixbot!) * Set committer and author of the commits to the machine account
- Loading branch information
Showing
2 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,20 @@ jobs: | |
|
||
- name: update | ||
run: | | ||
nix-build -A pkgs.npins | ||
result/bin/npins update nixpkgs | ||
nix-build -A autoPrUpdate | ||
result/bin/auto-pr-update > body | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
commit-message: "Automated Nixpkgs update" | ||
branch: auto-nixpkgs-update | ||
title: "Automated Nixpkgs update" | ||
body: "Update the pinned Nixpkgs automatically" | ||
# To trigger CI for automated PRs, we use a separate machine account | ||
# See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#workarounds-to-trigger-further-workflow-runs | ||
# and https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#push-pull-request-branches-to-a-fork | ||
token: ${{ secrets.MACHINE_USER_PAT }} | ||
push-to-fork: infinixbot/nixpkgs-check-by-name | ||
committer: infinixbot <[email protected]> | ||
author: infinixbot <[email protected]> | ||
commit-message: "Automated update" | ||
branch: auto-update | ||
title: "Automated update" | ||
body-path: body |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters