Skip to content

Commit 5e58343

Browse files
committed
ci: dispatch downstream release trains with one bot-owned token per organization
Pass RELEASE_TRAIN_DISPATCH_TOKEN (OpenJobDescription repositories) and RELEASE_TRAIN_DISPATCH_TOKEN_AWS_DEADLINE (aws-deadline repositories) to the reusable workflow's per-organization dispatch secrets, in place of the release workflows' token. Both are optional; without one, that organization's downstream repositories pick a release up on their daily run. Signed-off-by: Sean Tang <171081544+seant-aws@users.noreply.github.com>
1 parent 6cb8a70 commit 5e58343

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎.github/workflows/release_train.yml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
dispatch_repos: "OpenJobDescription/openjd-sessions-for-python OpenJobDescription/openjd-cli aws-deadline/deadline-cloud-worker-agent"
5656
secrets:
5757
role_arn: ${{ secrets.RELEASE_TRAIN_ROLE }}
58-
# The release workflows' token, used only by the dispatch step to run release_train.yml in
59-
# dispatch_repos. Optional: without it those repositories' daily run picks a release up.
60-
dispatch_token: ${{ secrets.CI_TOKEN }}
58+
# Bot-owned, Actions-only dispatch tokens, one per organization, used only by the dispatch step to run
59+
# release_train.yml in dispatch_repos. Optional: without an organization's token its repositories pick a
60+
# release up on their daily run.
61+
dispatch_token_openjd: ${{ secrets.RELEASE_TRAIN_DISPATCH_TOKEN }}
62+
dispatch_token_aws_deadline: ${{ secrets.RELEASE_TRAIN_DISPATCH_TOKEN_AWS_DEADLINE }}

0 commit comments

Comments
 (0)