aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/deps.yml
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2024-11-06 19:16:23 +0100
committertv <tv@krebsco.de>2024-11-06 19:16:23 +0100
commit77ec527f311091847b800fee01fd050953a65185 (patch)
treea4633c97ffd55d8b3db7dadfdba2ecb707f65d6c /.github/workflows/deps.yml
initial commit
Diffstat (limited to '.github/workflows/deps.yml')
-rw-r--r--.github/workflows/deps.yml44
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 @@
+name: Dependencies
+
+on:
+ schedule:
+ - cron: '0 0 * * 0'
+ workflow_dispatch:
+
+permissions:
+ pull-requests: write
+ contents: write
+
+jobs:
+ update:
+ name: Update
+ runs-on: ubuntu-latest
+ permissions:
+ actions: write
+ contents: write
+ pull-requests: write
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: DeterminateSystems/nix-installer-action@v12
+
+ - run: nix -vL run --show-trace .#update
+
+ - id: create-pr
+ uses: peter-evans/create-pull-request@v6
+ with:
+ branch: update_zmk_config_deps
+ delete-branch: true
+ committer: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'
+ author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'
+ commit-message: 'config,nix: update deps'
+ title: 'config,nix: update deps'
+ labels: 'dependencies'
+ body: |
+ Automated bump of ZMK dependencies
+
+ - uses: benc-uk/workflow-dispatch@v1
+ if: ${{ contains(fromJSON('["created", "updated"]'), steps.create-pr.outputs.pull-request-operation) }}
+ with:
+ workflow: ci.yml
+ ref: refs/heads/update_zmk_config_deps