From 6edc20ec74352ae3a443f6c87f27a055fb6822c9 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Sat, 23 Nov 2024 12:54:18 +0100 Subject: [PATCH] Add manual trigger for 'updateRelease'-workflow and use project-bot Adding a manual trigger allows to re-run that job manually with the latest changes applied to the referenced workflow from the releng.aggregator repository. And since we have a eclipse bot specifically for each project we can use that bot as author of these automated changes instead of the generic GH bot. Uses https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/pull/2571 --- .github/workflows/updateRelease.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/updateRelease.yml b/.github/workflows/updateRelease.yml index 65c0d04541a..263948e1c28 100644 --- a/.github/workflows/updateRelease.yml +++ b/.github/workflows/updateRelease.yml @@ -2,11 +2,23 @@ name: Update to next release on: milestone: types: [created] + workflow_dispatch: + inputs: + nextReleaseVersion: + description: 'The version of the release, e.g.: 4.35' + type: string + required: true jobs: update: - if: contains(github.event.milestone.description, 'Release') + if: github.event_name == 'workflow_dispatch' || contains(github.event.milestone.description, 'Release') permissions: pull-requests: write contents: write uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/updateRelease.yml@master + with: + nextReleaseVersion: ${{ inputs.nextReleaseVersion || github.event.milestone.title }} + botName: Eclipse Equinox Bot + botMail: equinox-bot@eclipse.org + secrets: + githubBotPAT: ${{ secrets.EQUINOX_BOT_PAT }}