Move all release_run logic into setvar job.

master
Brad Linden 2024-05-15 15:04:16 -07:00
parent 0960ae7892
commit 7feec9998e
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ jobs:
# When you want to use a string variable as a workflow YAML boolean, it's
# important to ensure it's the empty string when false. If you omit || '',
# its value when false is "false", which is interpreted as true.
RELEASE_RUN: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'Second_Life') && 'Y' || '' }}
RELEASE_RUN: ${{ (github.event.inputs.release_run || github.ref_type == 'tag' && startsWith(github.ref_name, 'Second_Life')) && 'Y' || '' }}
steps:
- name: Set Variable
id: setvar
@ -403,7 +403,7 @@ jobs:
release:
needs: [setvar, build, sign-and-package-windows, sign-and-package-mac]
runs-on: ubuntu-latest
if: needs.setvar.outputs.release_run || github.event.inputs.release_run
if: needs.setvar.outputs.release_run
steps:
- uses: actions/download-artifact@v4
with: