Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Updating token in release-please workflow so it can trigger the publi…
Browse files Browse the repository at this point in the history
…sh workflow after pushing the tag
  • Loading branch information
tanderson-ld committed Feb 12, 2024
1 parent 0f300b9 commit dab70b1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,18 @@ jobs:
pull-requests: write

steps:
# Normally a workflow cannot trigger another workflow. For this workflow we need to create a
# tag that will trigger another workflow. Github determines that something is created by
# a workflow/bot based on the token. So to allow the tag creation to trigger a workflow
# we must use a personal access token.
- uses: launchdarkly/gh-actions/actions/[email protected]
name: "Get PAT"
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
ssm_parameter_pairs: "/production/common/releasing/flutter_gh_pat = GITHUB_PAT"

- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ env.GITHUB_PAT }}
target-branch: ${{ github.ref_name }}

0 comments on commit dab70b1

Please sign in to comment.