-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: split updating flake to another workflow
- Loading branch information
1 parent
9870c93
commit 96b1ab6
Showing
2 changed files
with
50 additions
and
16 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Update flake inputs | ||
on: | ||
schedule: | ||
# 1st and 15th of each month at midnight UTC | ||
- cron: '0 0 1,15 * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
update_flake_inputs: | ||
name: Update flake inputs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up git user | ||
run: | | ||
git config --global user.name 'DavSanchez's GitHub Actions' | ||
git config --global user.email '[email protected] | ||
- name: Checkout a new branch | ||
run: git switch -c chore/update-flake-inputs | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@v7 | ||
- name: Update flake inputs | ||
run: nix flake update --commit-lock-file | ||
- name: Create Pull Request using GH CLI | ||
run: | | ||
gh pr create --title "chore: update flake inputs" --body "Update flake inputs" | ||
- name: Set branch for auto-merge | ||
run: gh pr merge --squash --auto --delete-branch | ||
|