We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a49f74 commit 1e54d96Copy full SHA for 1e54d96
.github/workflows/slack-notify.yaml
@@ -19,10 +19,8 @@ jobs:
19
- name: Get PR number
20
id: get-pr-number
21
if: github.event.workflow_run.event == 'pull_request'
22
- env:
23
- GH_TOKEN: ${{ github.token }}
24
run: |
25
- echo pull_request_number=$(gh pr view -R ${{ github.repository }} ${{ github.event.workflow_run.head_repository.owner.login }}:${{ github.event.workflow_run.head_branch }} --json number --jq .number) >> $GITHUB_OUTPUT
+ echo pull_request_number=$(echo ${{ github.event.workflow_run.pull_requests[0].number }}) >> $GITHUB_OUTPUT
26
- name: Slack Notify
27
uses: slackapi/slack-github-action@v1
28
with:
0 commit comments