Skip to content

Commit 4755a32

Browse files
committed
Pass GITHUB_TOKEN to Zulip CI step
1 parent d56a210 commit 4755a32

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: .github/workflows/rustc-pull.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
- name: Create pull request
6262
id: update-pr
6363
if: ${{ steps.rustc-pull.outputs.pull_result == 'pull-finished' }}
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6466
run: |
6567
# Check if an open pull request for an rustc pull update already exists
6668
# If it does, the previous push has just updated it
@@ -75,15 +77,15 @@ jobs:
7577
echo "Updating pull request ${PR_URL}"
7678
echo "pr_url=$PR_URL" >> $GITHUB_OUTPUT
7779
fi
78-
env:
79-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8080
send-zulip-message:
8181
needs: [pull]
8282
if: ${{ !cancelled() }}
8383
runs-on: ubuntu-latest
8484
steps:
8585
- name: Compute message
8686
id: create-message
87+
env:
88+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8789
run: |
8890
if [ "${{ needs.pull.result }}" == "failure" ]; then
8991
WORKFLOW_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

0 commit comments

Comments
 (0)