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/slack-github-action@v1.23.0
with:
payload: |
{
"pr": "${{ github.event.pull_request.html_url }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets. }} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I assume the workflow that creates the PR uses the
|
Beta Was this translation helpful? Give feedback.
I assume the workflow that creates the PR uses the
GITHUB_TOKEN
to authorize that? That'd prevent any workflows from being triggered, as described in the documentation: