Skip to content

Commit 95afff0

Browse files
authored
PR #3366 didn't work, revert it and fix the right way (#3384)
* Revert "attempt to get the tag-release.yaml workflow to actually succeed at triggering a release build (#3366)" This reverts commit 3b79d2c. * Another attempt to fix nightly develop builds (hopefully the right way this time)
1 parent 3b79d2c commit 95afff0

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/build.yaml

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

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

.github/workflows/tag-release.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ jobs:
3737
- name: Update Tag
3838
uses: actions/[email protected]
3939
with:
40-
github-token: ${{ secrets.GITHUB_TOKEN }}
40+
# use a real access token instead of GITHUB_TOKEN default.
41+
# required so that the results of this tag creation can trigger the build workflow
42+
# https://stackoverflow.com/a/71372524
43+
# https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
44+
# this token will need to be renewed anually in January
45+
github-token: ${{ secrets.LL_TAG_RELEASE_TOKEN }}
4146
script: |
4247
github.rest.git.createRef({
4348
owner: context.repo.owner,

0 commit comments

Comments
 (0)