From 976c697ee8122a8929120621aa23fdd62b154f07 Mon Sep 17 00:00:00 2001 From: Chester Curme Date: Thu, 5 Sep 2024 15:40:15 -0400 Subject: [PATCH] pass input to test_release --- .github/workflows/_release.yml | 1 + .github/workflows/_test_release.yml | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index 4b02e55..1e8ca97 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -80,6 +80,7 @@ jobs: permissions: write-all with: working-directory: ${{ inputs.working-directory }} + dangerous-nonmaster-release: ${{ inputs.dangerous-nonmaster-release }} secrets: inherit pre-release-checks: diff --git a/.github/workflows/_test_release.yml b/.github/workflows/_test_release.yml index f49e505..b470070 100644 --- a/.github/workflows/_test_release.yml +++ b/.github/workflows/_test_release.yml @@ -7,6 +7,11 @@ on: required: true type: string description: "From which folder this pipeline executes" + dangerous-nonmaster-release: + required: false + type: boolean + default: false + description: "Release from a non-master branch (danger!)" env: POETRY_VERSION: "1.7.1" @@ -14,7 +19,7 @@ env: jobs: build: - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' || inputs.dangerous-nonmaster-release runs-on: ubuntu-latest outputs: