diff options
Diffstat (limited to '.github/workflows/flake.yml')
| -rw-r--r-- | .github/workflows/flake.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/flake.yml b/.github/workflows/flake.yml new file mode 100644 index 0000000..5aef002 --- /dev/null +++ b/.github/workflows/flake.yml | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | name: Flake | ||
| 2 | |||
| 3 | on: | ||
| 4 | schedule: | ||
| 5 | - cron: '0 0 * * 0' | ||
| 6 | workflow_dispatch: | ||
| 7 | |||
| 8 | jobs: | ||
| 9 | update: | ||
| 10 | name: Update | ||
| 11 | runs-on: ubuntu-latest | ||
| 12 | permissions: | ||
| 13 | actions: write | ||
| 14 | contents: write | ||
| 15 | pull-requests: write | ||
| 16 | steps: | ||
| 17 | - uses: actions/checkout@v4 | ||
| 18 | |||
| 19 | - uses: DeterminateSystems/nix-installer-action@v11 | ||
| 20 | |||
| 21 | - id: update-flake-lock | ||
| 22 | uses: DeterminateSystems/update-flake-lock@v21 | ||
| 23 | with: | ||
| 24 | commit-msg: 'flake: update inputs' | ||
| 25 | pr-title: 'flake: update inputs' | ||
| 26 | pr-labels: 'dependencies' | ||
| 27 | |||
| 28 | - uses: benc-uk/workflow-dispatch@v1 | ||
| 29 | if: ${{ contains(fromJSON('["created", "updated"]'), steps.update-flake-lock.outputs.pull-request-operation) }} | ||
| 30 | with: | ||
| 31 | workflow: ci.yml | ||
| 32 | ref: refs/heads/update_flake_lock_action | ||
