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

CI: Skip pipelines if no source files are changed #326

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

henrybear327
Copy link
Collaborator

@henrybear327 henrybear327 commented Jan 8, 2024

Based on some research (1 2 3 4 5) regarding job dependencies on GitHub CI:

  • in order to define job dependencies, all jobs that have dependencies need to be defined in the same yml file
  • there doesn't exist a way to cancel the started job gracefully

Thus, based on the current knowledge

  • a job to test for code-related changes in certain directories will be the pre-req job for jobs that only need to be run if there are code-related changes
  • because of the GitHub CI restrictions, jobs that require file-change checks are moved to mail.yml. By using dependencies, we can avoid adding if checks for all the steps that require file-change checks

Close #284

@henrybear327 henrybear327 force-pushed the ci/skip_ci branch 7 times, most recently from 9dbcbdd to 51a9565 Compare January 8, 2024 20:38
@henrybear327 henrybear327 self-assigned this Jan 8, 2024
.github/workflows/main.yml Outdated Show resolved Hide resolved
@jserv jserv merged commit 978c7e2 into sysprog21:master Jan 9, 2024
7 checks passed
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.

CI: Skip pipelines if no source files are changed
2 participants