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

fix(ci): only run actions jobs on push to main #325

Merged
merged 2 commits into from
Mar 4, 2025

Conversation

wrslatz
Copy link
Contributor

@wrslatz wrslatz commented Mar 4, 2025

Pull Request

Proposed Changes

Only runs Actions jobs on push to main branch. Fixes #323.

If we want these to run on other pushes but not pushes targeting pull requests, we'll need to adjust the on syntax in these workflows.

This will require a corresponding update to remove the (push) jobs from branch protections (cc @github-community-projects/ospo) Never mind, the Actions required in branch protections seem to intelligently no longer require those push jobs. Apologies for the ping!

Readiness Checklist

Author/Contributor

  • If documentation is needed for this change, has that been included in this pull request
  • run npm run lint and fix any linting issues that have been introduced
  • run npm run test and run tests
  • If publishing new data to the public (scorecards, security scan results, code quality results, live dashboards, etc.), please request review from @jeffrey-luszcz

Reviewer

  • Label as either bug, documentation, enhancement, infrastructure, maintenance, or breaking

@wrslatz wrslatz added maintenance github_actions Pull requests that update GitHub Actions code labels Mar 4, 2025
@wrslatz wrslatz self-assigned this Mar 4, 2025
@wrslatz wrslatz requested review from a team as code owners March 4, 2025 03:42
@github-actions github-actions bot added the fix label Mar 4, 2025
@Miablo Miablo enabled auto-merge March 4, 2025 17:14
Copy link
Contributor

@Miablo Miablo left a comment

Choose a reason for hiding this comment

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

🚢

@Miablo Miablo merged commit f0f3959 into main Mar 4, 2025
8 checks passed
@Miablo Miablo deleted the fix-duplicate-pr-actions-jobs branch March 4, 2025 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix github_actions Pull requests that update GitHub Actions code maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate GitHub Actions jobs on pull requests
2 participants