-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ace775d
commit 33957e8
Showing
1 changed file
with
55 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: UMU Update flake.lock | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Every Saturday at noon | ||
- cron: '0 12 * * sat' | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
flake_lock: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Install nix | ||
uses: cachix/install-nix-action@v30 | ||
with: | ||
github_access_token: ${{ github.token }} | ||
- name: Setup nix cache | ||
uses: DeterminateSystems/magic-nix-cache-action@main | ||
Check warning on line 23 in .github/workflows/update-umu-nix-flake.yml
|
||
- name: Update flake.lock | ||
id: update | ||
uses: DeterminateSystems/update-flake-lock@main | ||
with: | ||
# NOTE: PR pushes by @github-actions don't trigger CI. | ||
# One workaround is to provide a Personal Access Token, | ||
# but then the PAT-owner is marked as the PR author. | ||
# TODO: Consider providing a PAT. Maybe of a "bot account"? | ||
path-to-flake-dir: packaging/nix | ||
branch: update_flake/${{ github.ref_name }} | ||
pr-labels: | | ||
dependencies | ||
github_actions | ||
pr-reviewers: | | ||
beh-10257 | ||
MattSturgeon | ||
LovingMelody | ||
- name: Print summary | ||
env: | ||
num: ${{ steps.update.outputs.pull-request-number }} | ||
url: ${{ steps.update.outputs.pull-request-url }} | ||
operation: ${{ steps.update.outputs.pull-request-operation }} | ||
run: | | ||
echo "Pull request #$num was $operation." | ||
echo "$url" | ||
( | ||
echo "Pull request" | ||
echo | ||
echo "[#$num]($url) was $operation." | ||
echo | ||
) >> $GITHUB_STEP_SUMMARY | ||