Skip to content

Commit

Permalink
Upgrade maintainance workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
urob committed Dec 16, 2024
1 parent f5b40c7 commit a8f1dbf
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Create a new module release
name: Release module version

on:
pull_request:
types:
- closed
branches:
- main

permissions:
contents: write

jobs:
build:
permissions:
contents: write
uses: urob/zmk-modules-actions/.github/workflows/upgrade-module.yml@main
release:
uses: urob/zmk-modules-actions/.github/workflows/upgrade-module.yml@v1
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ on:
workflow_dispatch:
push:
paths:
- ".github/workflows/test.yml"
- "tests/**"
- "src/**"
- "dts/**"
- "include/**"
- "src/**"
- "tests/**"
pull_request:
paths:
- ".github/workflows/test.yml"
- "tests/**"
- "src/**"
- "dts/**"
- "include/**"
- "src/**"
- "tests/**"

jobs:
build:
uses: urob/zmk-modules-actions/.github/workflows/run-tests.yml@main
test:
uses: urob/zmk-modules-actions/.github/workflows/run-tests.yml@v1
15 changes: 9 additions & 6 deletions .github/workflows/upgrade-zmk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ name: Check for new ZMK releases
on:
workflow_dispatch:
schedule:
- cron: "0 22 * * *" # Run daily at 22:00 UTC (17:00 ET)
- cron: "0 22 * * *" # Run daily at 22:00 UTC

permissions:
contents: write

jobs:
build:
uses: urob/zmk-modules-actions/.github/workflows/upgrade-zmk.yml@main
permissions:
contents: write
secrets: inherit
upgrade-zmk:
uses: urob/zmk-modules-actions/.github/workflows/upgrade-zmk.yml@v1
secrets:
# Name of PAT with write access to pull requests
token: ${{ secrets.ZMK_ACTIONS_TOKEN }}

0 comments on commit a8f1dbf

Please sign in to comment.