-
Notifications
You must be signed in to change notification settings - Fork 65
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
Trigger build workflows based on changed files #3439
Labels
Comments
sven-dmlr
added
build
java
github_actions
Pull requests that update GitHub Actions code
labels
Sep 19, 2024
sven-dmlr
added a commit
that referenced
this issue
Sep 19, 2024
sven-dmlr
added a commit
that referenced
this issue
Sep 19, 2024
sven-dmlr
added a commit
that referenced
this issue
Sep 19, 2024
sven-dmlr
added a commit
that referenced
this issue
Sep 19, 2024
sven-dmlr
added a commit
that referenced
this issue
Sep 19, 2024
sven-dmlr
added a commit
that referenced
this issue
Sep 19, 2024
sven-dmlr
added a commit
that referenced
this issue
Sep 20, 2024
"tag-ignore" in the on: section does not work. So placed in the job
sven-dmlr
added a commit
that referenced
this issue
Sep 23, 2024
direct pushes should not happen to the main branches anyway
sven-dmlr
added a commit
that referenced
this issue
Sep 23, 2024
…d-workflows-based-on-changes Trigger build workflows based on changed files #3439
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Situation
Currently the workflows
are not working properly (commits to
master
,develop
, ... never trigger a run but they should)Additionally both workflows are started even if they aren't suppoed to run (skipped by
if:
statement.This looks a bit confusing.
Wanted
The build workflows are triggered based on the change's (Pr or commit) content.
Solution
Use
paths:
andpaths-ignore
instead of
branches
plusif:
.See https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore
Also the docs can be updated: There is no more need for
gha_feature-xyz
branch names.The text was updated successfully, but these errors were encountered: