From 711ae694cd715749886f291d2b38baf17a1239d7 Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Wed, 27 Dec 2023 12:48:51 +0100 Subject: [PATCH] Allow running the post release action manually --- .github/workflows/prepare_post_release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prepare_post_release.yml b/.github/workflows/prepare_post_release.yml index cfcd4c2004b..1a4ef45d08f 100644 --- a/.github/workflows/prepare_post_release.yml +++ b/.github/workflows/prepare_post_release.yml @@ -1,6 +1,7 @@ name: "Prepare post-release" on: + workflow_dispatch: pull_request: branches: - main @@ -15,8 +16,10 @@ jobs: BUNDLE_ONLY: "release" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} if: | - github.event.pull_request.merged == true && + (github.event_name == 'workflow_dispatch') || ( + github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release:generate') + ) steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1