Skip to content

Prevent execution of scheduled GitHub Actions on forks#18343

Merged
rwinch merged 1 commit into
spring-projects:mainfrom
scordio:prevent-antora-on-forks
Feb 19, 2026
Merged

Prevent execution of scheduled GitHub Actions on forks#18343
rwinch merged 1 commit into
spring-projects:mainfrom
scordio:prevent-antora-on-forks

Conversation

@scordio

@scordio scordio commented Dec 20, 2025

Copy link
Copy Markdown
Contributor

Prior to this commit, any fork that copied the main branch only experienced daily failures at 10am UTC due to the scheduled execution of the update-antora-ui-spring workflow:

schedule:
- cron: '0 10 * * *' # Once per day at 10am UTC

or at 2am UTC due to gradle-wrapper-upgrade-execution:

With this change, scheduled workflow jobs are executed only when under spring-projects/spring-security.

The failures of my fork: update-antora-ui-spring and gradle-wrapper-upgrade-execution

Relates to:

@scordio scordio force-pushed the prevent-antora-on-forks branch from 592eba7 to c27d608 Compare December 20, 2025 10:36
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 20, 2025
@scordio scordio force-pushed the prevent-antora-on-forks branch 2 times, most recently from c17f6e3 to 42245b6 Compare December 22, 2025 06:10
@scordio scordio changed the title Prevent execution of Antora jobs on forks Prevent execution of scheduled GitHub Actions on forks Dec 22, 2025
@scordio scordio force-pushed the prevent-antora-on-forks branch from 42245b6 to 490c471 Compare January 12, 2026 08:54
@scordio scordio force-pushed the prevent-antora-on-forks branch from 490c471 to 1cc50f3 Compare January 30, 2026 10:32
Signed-off-by: Stefano Cordio <stefano.cordio@gmail.com>
@scordio scordio force-pushed the prevent-antora-on-forks branch from 1cc50f3 to 9fe63c7 Compare February 15, 2026 14:50
@rwinch rwinch self-assigned this Feb 19, 2026
@rwinch rwinch added in: build An issue in the build type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 19, 2026
@rwinch rwinch merged commit 3cc7076 into spring-projects:main Feb 19, 2026
7 checks passed
@rwinch

rwinch commented Feb 19, 2026

Copy link
Copy Markdown
Member

Thanks for the Pull Request! This is now merged into main 😄

@scordio scordio deleted the prevent-antora-on-forks branch February 19, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: build An issue in the build type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants