From 1bd86b6868f214ca4de05f384db41d98f29a63aa Mon Sep 17 00:00:00 2001 From: Jacob Ransom Date: Wed, 21 Oct 2026 12:09:48 +1300 Subject: [PATCH 1/2] Add the weekly release caller, dispatched by hand until it gets a schedule [ignore_release] --- .github/workflows/weekly-release.yml | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/weekly-release.yml diff --git a/.github/workflows/weekly-release.yml b/.github/workflows/weekly-release.yml new file mode 100644 index 0000000..d8701f7 --- /dev/null +++ b/.github/workflows/weekly-release.yml @@ -0,0 +1,37 @@ +# Releases this plugin from its dev branch when plugin.json carries an untagged version whose +# CHANGELOG.md entry is undated. It has no schedule yet, so it only runs when dispatched by hand. +# The logic lives in matomo-org/plugin-ci-workflows; see the "Weekly release" section of its +# README.md. + +name: Weekly release + +on: + workflow_dispatch: + inputs: + all-branches: + description: "Also release the other maintained branches" + type: boolean + default: false + +permissions: {} + +jobs: + release: + # Granted here because permissions can only be reduced down a call chain, never elevated. + permissions: + actions: write + contents: write + pull-requests: write + uses: matomo-org/plugin-ci-workflows/.github/workflows/plugin-dev-release.yml@main + secrets: + approver-token: ${{ secrets.TESTS_ACCESS_TOKEN }} + + # A dispatched run must not dispatch again, or the branches would keep dispatching each other. + other-branches: + if: github.event_name == 'schedule' || inputs.all-branches + permissions: + actions: write + contents: read + uses: matomo-org/plugin-ci-workflows/.github/workflows/plugin-branch-sweep.yml@main + with: + workflow-file: weekly-release.yml From 1c191fc1025dd497e82fd032a4e1b7a87cc4d688 Mon Sep 17 00:00:00 2001 From: Jacob Ransom Date: Wed, 21 Oct 2026 14:30:19 +1300 Subject: [PATCH 2/2] Let a weekly release run by hand skip the CI check [ignore_release] --- .github/workflows/weekly-release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/weekly-release.yml b/.github/workflows/weekly-release.yml index d8701f7..c31cb22 100644 --- a/.github/workflows/weekly-release.yml +++ b/.github/workflows/weekly-release.yml @@ -12,6 +12,10 @@ on: description: "Also release the other maintained branches" type: boolean default: false + skip-ci-check: + description: "Release this branch even though its CI failed or is still running" + type: boolean + default: false permissions: {} @@ -23,6 +27,8 @@ jobs: contents: write pull-requests: write uses: matomo-org/plugin-ci-workflows/.github/workflows/plugin-dev-release.yml@main + with: + skip-ci-check: ${{ inputs.skip-ci-check || false }} secrets: approver-token: ${{ secrets.TESTS_ACCESS_TOKEN }}