From bbd7d5115acfaf0032d2f7c7310cc4ae05d707a0 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Tue, 10 Dec 2024 10:45:30 -0300 Subject: [PATCH] Allow triggering the prepare-release workflow manually for Quarkiverse extensions This allows you to retry failed releases without the need to revert changes to `.github/project.yml` --- .../quarkiverse/java/.github/workflows/release-prepare.yml | 3 ++- ...us-my-quarkiverse-ext_.github_workflows_release-prepare.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/release-prepare.yml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/release-prepare.yml index aedad9370a2dc..e2da7080b29b7 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/release-prepare.yml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/release-prepare.yml @@ -1,6 +1,7 @@ name: Quarkiverse Prepare Release on: + workflow_dispatch: pull_request: types: [ closed ] paths: @@ -13,6 +14,6 @@ concurrency: jobs: prepare-release: name: Prepare Release - if: ${{ github.event.pull_request.merged == true}} + if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true}} uses: quarkiverse/.github/.github/workflows/prepare-release.yml@main secrets: inherit diff --git a/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_.github_workflows_release-prepare.yml b/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_.github_workflows_release-prepare.yml index aedad9370a2dc..e2da7080b29b7 100644 --- a/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_.github_workflows_release-prepare.yml +++ b/integration-tests/maven/src/test/resources/__snapshots__/CreateExtensionMojoIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_.github_workflows_release-prepare.yml @@ -1,6 +1,7 @@ name: Quarkiverse Prepare Release on: + workflow_dispatch: pull_request: types: [ closed ] paths: @@ -13,6 +14,6 @@ concurrency: jobs: prepare-release: name: Prepare Release - if: ${{ github.event.pull_request.merged == true}} + if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true}} uses: quarkiverse/.github/.github/workflows/prepare-release.yml@main secrets: inherit