diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8cdf129..e903483 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,5 @@ -name: Create a new module release +name: Release module version + on: pull_request: types: @@ -6,8 +7,9 @@ on: 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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6cc86ac..c511773 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/.github/workflows/upgrade-zmk.yml b/.github/workflows/upgrade-zmk.yml index 554b58e..16cdca4 100644 --- a/.github/workflows/upgrade-zmk.yml +++ b/.github/workflows/upgrade-zmk.yml @@ -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 }}