Skip to content
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

Bulldozer causing Github Action workflows set to run on merge to be skipped #524

Open
reedog117 opened this issue Jun 25, 2024 · 1 comment

Comments

@reedog117
Copy link

reedog117 commented Jun 25, 2024

I have a GitHub Action workflow that's set to run whenever a PR is merged. It was working fine until I enabled bulldozer -- now the workflow jobs are being skipped.

The condition I'm using is below:

jobs:
  create_release_after_merge:
    runs-on: ubuntu-latest
    # detect when PR is merged and the PR is for a merge to main
    if: (github.event.pull_request.merged == 'true' && github.event.pull_request.base.ref == 'main' || github.event_name == 'workflow_dispatch' )

Are bulldozer merges different from manual merges and this is causing my workflow to be skipped?

@asvoboda
Copy link
Member

Bulldozer uses the Github API to merge PRs using Github app auth. It doesn't have access to any special or internal API.

Perhaps try testing out to see what happens if you merge using the API with your own token? Or try changing up which events are used for detecting the merge event?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants