Skip to content

Commit

Permalink
fix(stage-build): provide GH_TOKEN + specify repo in trigger job (#10932
Browse files Browse the repository at this point in the history
)

* fix(stage-build): provide GH_TOKEN to trigger job

* fix(stage-build): specify repo for workflow run
  • Loading branch information
caugner authored Apr 17, 2024
1 parent 7349cca commit d371c0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/stage-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ jobs:
if: ${{ github.repository == 'mdn/yari' && github.event.schedule != '' }}
steps:
# The schedule runs the `main` version, but we want the `next` version.
- run: gh workflow run "${{ github.workflow }}" --ref "${{ env.DEFAULT_REF }}"
- run: gh workflow run "${{ github.workflow }}" --repo "${{ github.repository }}" --ref "${{ env.DEFAULT_REF }}"
env:
GH_TOKEN: ${{ secrets.AUTOMERGE_TOKEN }}

build:
environment: stage
Expand Down

0 comments on commit d371c0a

Please sign in to comment.