2022-05-13 23:44:49 +02:00
|
|
|
name: "Update flakes"
|
|
|
|
on:
|
|
|
|
repository_dispatch:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '51 2 * * 0'
|
2024-11-17 13:02:33 +01:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
|
|
|
|
2022-05-13 23:44:49 +02:00
|
|
|
jobs:
|
|
|
|
createPullRequest:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 05:27:10 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-05-13 23:44:49 +02:00
|
|
|
- name: Install Nix
|
2024-10-07 23:14:23 +00:00
|
|
|
uses: cachix/install-nix-action@v30
|
2022-05-13 23:44:49 +02:00
|
|
|
with:
|
|
|
|
extra_nix_config: |
|
|
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
2024-11-17 13:02:33 +01:00
|
|
|
- name: Update flakes
|
|
|
|
run: |
|
|
|
|
nix flake update
|
|
|
|
pushd dev/private
|
|
|
|
nix flake update
|
|
|
|
popd
|
|
|
|
nix run .#update-dev-private-narHash
|
|
|
|
- name: Create Pull Request
|
|
|
|
uses: peter-evans/create-pull-request@v7
|