Skip to content

Commit f9d8321

Browse files
committed
NEW @W-16362588@ Release branch creation now triggers v5 equivalent too.
1 parent b0c9d7f commit f9d8321

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/create-release-branch.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,22 @@ jobs:
4040
# If the workflow wasn't manually triggered, then it should only be allowed to run to completion on the Friday
4141
# before Release Day.
4242
[[ $TODAY_DOW != 5 || $NEXT_RELEASE_DATE != $NEXT_TUESDAY_DATE ]] && echo "should_run=false" >> "$GITHUB_OUTPUT" || echo "should_run=true" >> "$GITHUB_OUTPUT"
43+
create-alpha-release-branch:
44+
runs-on: macos-latest
45+
needs: verify-should-run
46+
if: ${{ needs.verify-should-run.outputs.should-run == 'true' }}
47+
steps:
48+
- name: Invoke alpha workflow
49+
uses: actions/github-script@v6
50+
with:
51+
github-token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
52+
script: |
53+
await github.rest.actions.createWorkflowDispatch({
54+
owner: context.repo.owner,
55+
repo: context.repo.repo,
56+
workflow_id: 'create-release-branch.yml',
57+
ref: 'dev-5'
58+
});
4359
create-release-branch:
4460
runs-on: macos-latest
4561
needs: verify-should-run

0 commit comments

Comments
 (0)