diff options
author | nat-goodspeed <nat@lindenlab.com> | 2024-05-16 10:06:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-16 10:06:05 -0400 |
commit | da469588244d490673ec08d186526d8832dcbd62 (patch) | |
tree | 4cb8f623b67257b17f441ca8eeb5afa5f64455e3 /.github/workflows | |
parent | 5e294f668960a307a42a49085f5291804b5c825a (diff) | |
parent | 7feec9998e61c234b1a9557c2edf8fc2b52a73cc (diff) |
Merge pull request #1486 from secondlife/brad/workflow-dispatch-release
Experiment with getting manually triggered workflow builds to optionally do a release
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yaml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 94bd13f4af..b60f787a9c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,6 +2,11 @@ name: Build on: workflow_dispatch: + inputs: + release_run: + type: boolean + description: Do a release of this build + default: false pull_request: push: branches: ["main", "release/*", "project/*"] @@ -22,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 |