Github action not triggered when github-actions bot makes pull request. #55906
Select Topic AreaQuestion BodyI wrote a GitHub Action to send a Slack message when the main target PR is opened or edited. Here is my full github action yaml. Why this happens and how can I fix it? name: sample
on:
pull_request:
branches:
- main
types: [opened, edited]
jobs:
first:
runs-on: ubuntu-latest
steps:
- name: Send slack message when pr opened
uses: slackapi/[email protected]
with:
payload: |
{
"pr": "${{ github.event.pull_request.html_url }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets. }} |
Answered by
airtower-luna
May 19, 2023
Replies: 3 comments 9 replies
|
I assume the workflow that creates the PR uses the
|
9 replies
Answer selected by
emewjin
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I assume the workflow that creates the PR uses the
GITHUB_TOKENto authorize that? That'd prevent any workflows from being triggered, as described in the documentation: