Replies: 5 comments 2 replies
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Just noticed that the EVENT_NAME variable is not being expanded. So, not actually triggering the event name it should list and trigger to. - name: Dispatch Event
env:
PAT: ${{ secrets.PAT }}
ENDPOINT: 'https://api.github.com/repos/<ORG>/<NAME>/dispatches'
EVENT_NAME: 'my-event-name'
run: |
if ! curl -H "Accept: application/vnd.github+json" \
-H "Authorization: token $PAT" \
--request POST \
--data \"{ \"event_type\": \"$EVENT_NAME\" }" $ENDPOINT; then
echo "⚠️ Warning: Failed to dispatch $EVENT_NAME. Since this triggers the indexer listener, you should dispatch the action manually. If this issue persists, report it internally."
fi Also, replaced the github author details, in case GitHub bot's the reason why the event not triggered. But same issue. - name: Setup Git Config
run: |
git config --global user.email "[email protected]"
git config --global user.name "Xx" |
Beta Was this translation helpful? Give feedback.
-
I believe I have found the bug. The
This only occurs if the jobB has the following
The jobA is triggered from develop. The develop branch has no new commits when jobA is triggered manually! |
Beta Was this translation helpful? Give feedback.
-
The Event does trigger. Thought the trigger would occur in the context of the commit and show in the listed jobs for the commit message in the "Branch". But it shows in the "Actions tab". In any case, the bug persists for the "on push main". |
Beta Was this translation helpful? Give feedback.
-
There are a few potential reasons why the action listening to the 1. Event Type Mismatch in DispatchThe event you're dispatching is --data "{\"event_type\": \"${EVENT_NAME}\" }" This ensures that The final command should look like: if ! curl -H "Accept: application/vnd.github+json" \
-H "Authorization: token $PAT" \
--request POST \
--data "{\"event_type\": \"${EVENT_NAME}\" }" $ENDPOINT; then
echo "⚠️ Warning: Failed to dispatch $EVENT_NAME. Since this triggers the indexer listener, you should dispatch the action manually. If this issue persists, report it internally."
fi 2. Missing Repository Dispatch PermissionsEnsure that your Personal Access Token ( You can check and regenerate the PAT with the correct permissions in your GitHub account if needed. 3. Push to Main Branch Trigger IssuesThe push trigger in
4. Workflow Runs LimitationGitHub has a limitation where workflows triggered by the A possible solution is to use the 5. Repository Dispatch Event PayloadWhen using 6. Event Delivery FailuresIf you suspect an issue with the event delivery, check the "Recent Deliveries" in your repository's Settings > Webhooks section. This will give you insights into whether the dispatched event was delivered successfully, and if not, the error details. 7. Secrets and Authentication IssuesDouble-check that the If you review these potential issues and none of them resolve the problem, enabling more detailed logging within your workflows (especially around the |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Bug
Body
Hi,
Seems that I found a bug, an action which listens to event
push
or a custom event fails to run for some reason. Why would this be?Here's the job snippet:
Here's the job snippets that is used to merge changes into the
main
branch:Beta Was this translation helpful? Give feedback.
All reactions