Skip to content

Conversation

@scordio
Copy link
Contributor

@scordio scordio commented Dec 22, 2024

Prior to this commit, running the continuous-integration.yml workflow on a fork's main branch would fail due to the deployment steps, and no CI was executed on branches and pull requests.

With this change, the deployment steps are executed only when the current repository is spring-projects/spring-batch and the branch is main; otherwise, only mvn verify is executed. Plus, CI execution is now available for branches and pull requests (like in this one).

@fmbenhassine
Copy link
Contributor

LGTM 👍 Thank you for this PR!

@fmbenhassine fmbenhassine merged commit 98a4228 into spring-projects:main Feb 20, 2025
1 of 2 checks passed
@scordio scordio deleted the skip-cd-on-forks branch February 20, 2025 10:26
@scordio
Copy link
Contributor Author

scordio commented Feb 20, 2025

I just noticed that, after yesterday's rebase, the execution took 6 hours and eventually failed. Maybe further optimizations are possible like excluding long running tests from PR executions. I'll try to dig a bit more.

@hpoettker
Copy link
Contributor

The problem with the stalling build has been there for a while: #4741

The PR might solve it or might not. So far, I couldn't reproduce it locally.

@fmbenhassine
Copy link
Contributor

@hpoettker I was working on #4741 just after this PR, which is now merged.

Thank you both for your contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants