diff options
| author | vin <git@vineetk.net> | 2025-03-15 04:09:10 -0400 |
|---|---|---|
| committer | vin <git@vineetk.net> | 2025-03-15 04:23:57 -0400 |
| commit | 3a4410509bd64e5a4439d932e8d3a289a604526d (patch) | |
| tree | d94597c69c3606d7e7bbe0164429721989f974fe /.github/workflows/deps.yml | |
setup zmk-config via github:lilyinstarlight/zmk-nix
Diffstat (limited to '.github/workflows/deps.yml')
| -rw-r--r-- | .github/workflows/deps.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/deps.yml b/.github/workflows/deps.yml new file mode 100644 index 0000000..b1ba83b --- /dev/null +++ b/.github/workflows/deps.yml | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | name: Dependencies | ||
| 2 | |||
| 3 | on: | ||
| 4 | schedule: | ||
| 5 | - cron: '0 0 * * 0' | ||
| 6 | workflow_dispatch: | ||
| 7 | |||
| 8 | permissions: | ||
| 9 | pull-requests: write | ||
| 10 | contents: write | ||
| 11 | |||
| 12 | jobs: | ||
| 13 | update: | ||
| 14 | name: Update | ||
| 15 | runs-on: ubuntu-latest | ||
| 16 | permissions: | ||
| 17 | actions: write | ||
| 18 | contents: write | ||
| 19 | pull-requests: write | ||
| 20 | steps: | ||
| 21 | - uses: actions/checkout@v4 | ||
| 22 | |||
| 23 | - uses: DeterminateSystems/nix-installer-action@v12 | ||
| 24 | |||
| 25 | - run: nix -vL run --show-trace .#update | ||
| 26 | |||
| 27 | - id: create-pr | ||
| 28 | uses: peter-evans/create-pull-request@v6 | ||
| 29 | with: | ||
| 30 | branch: update_zmk_config_deps | ||
| 31 | delete-branch: true | ||
| 32 | committer: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>' | ||
| 33 | author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>' | ||
| 34 | commit-message: 'config,nix: update deps' | ||
| 35 | title: 'config,nix: update deps' | ||
| 36 | labels: 'dependencies' | ||
| 37 | body: | | ||
| 38 | Automated bump of ZMK dependencies | ||
| 39 | |||
| 40 | - uses: benc-uk/workflow-dispatch@v1 | ||
| 41 | if: ${{ contains(fromJSON('["created", "updated"]'), steps.create-pr.outputs.pull-request-operation) }} | ||
| 42 | with: | ||
| 43 | workflow: ci.yml | ||
| 44 | ref: refs/heads/update_zmk_config_deps | ||
