Skip to content

Commit 3b79d2c

Browse files
authored
attempt to get the tag-release.yaml workflow to actually succeed at triggering a release build (#3366)
1 parent 3d47831 commit 3b79d2c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
push:
66
branches: ["main", "release/*", "project/*"]
77
tags: ["Second_Life*"]
8+
workflow_run:
9+
workflows: ["Tag a Build"]
10+
types:
11+
- completed
812

913
jobs:
1014
# The whole point of the setup job is that we want to set variables once
@@ -25,7 +29,7 @@ jobs:
2529
# When you want to use a string variable as a workflow YAML boolean, it's
2630
# important to ensure it's the empty string when false. If you omit || '',
2731
# its value when false is "false", which is interpreted as true.
28-
RELEASE_RUN: ${{ (github.event.inputs.release_run || github.ref_type == 'tag' && startsWith(github.ref_name, 'Second_Life')) && 'Y' || '' }}
32+
RELEASE_RUN: ${{ (github.event.inputs.release_run || github.event_name == 'workflow_run' || github.ref_type == 'tag' && startsWith(github.ref_name, 'Second_Life')) && 'Y' || '' }}
2933
FROM_FORK: ${{ github.event.pull_request.head.repo.fork }}
3034
steps:
3135
- name: Set Variables

0 commit comments

Comments
 (0)