Skip to content

ci: merge approval and notify jobs #16403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2025
Merged

Conversation

matifali
Copy link
Member

@matifali matifali commented Feb 3, 2025

As per GitHub, a workflow can not trigger a workflow when using the e GitHub actions provided GITHUB_TOKNE. This is why the dependabot notify job never runs when the PR is merged.

When you use the repository's GITHUB_TOKEN to perform tasks, events triggered by the GITHUB_TOKEN, with the exception of workflow_dispatch and repository_dispatch, will not create a new workflow run.

Reference: https://github.com/orgs/community/discussions/57484

Alternatively, I can keep the original workflow but use a PAT stored in secret to merge PRs.

Remove concurrency and simplify event handling in the workflow.
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@matifali matifali merged commit cab1f37 into main Feb 3, 2025
28 checks passed
@matifali matifali deleted the atif/mege-notify-and-approve-jobs branch February 3, 2025 15:35
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants