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

Avoid duplicated Actions runs and deploy only from main #580

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

santisoler
Copy link
Member

Update run conditions for GitHub Actions. Run GitHub Actions on every Pull Request and only on pushes to main branch. This avoids having duplicated runs in every PR: one because it's a PR and one because it's a push to a branch. Add condition to deploy GitHub Pages only if the built came from a push to main.

Run GitHub Actions on every Pull Request and only on pushes to `main`
branch. This avoids having duplicated runs in every PR: one because it's
a PR and one because it's a push to a branch.
Deploy GitHub Pages only if the built came from a push to main.
@santisoler
Copy link
Member Author

santisoler commented Dec 4, 2024

I'd like to merge this to avoid any accidental deployment as soon as the PRs start passing the tests and builds.

@lheagy I need one approved review to be able to merge this.

Copy link
Member

@lheagy lheagy left a comment

Choose a reason for hiding this comment

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

Thanks Santi!

@santisoler santisoler merged commit b2cecdb into main Dec 4, 2024
1 of 2 checks passed
@santisoler santisoler deleted the minor-actions-update branch December 4, 2024 20:50
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

Successfully merging this pull request may close these issues.

2 participants