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: