-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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: fix filter_changed_files to not silently fail ;) #18723
Conversation
@@ -1,5 +1,7 @@ | |||
#!/bin/bash | |||
|
|||
set -euo pipefail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't solve the underlying problem, but it should guard against a silent failure
@@ -1,5 +1,7 @@ | |||
#!/bin/bash | |||
|
|||
set -euo pipefail | |||
|
|||
# Get the list of changed files | |||
files_to_check=$(git diff --name-only origin/$GITHUB_BASE_REF) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I'm betting $GITHUB_BASE_REF
isn't set on merges to main. In that case, we should just diff HEAD vs HEAD^ I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be closed. See #18851
It's been failing:
https://github.com/hashicorp/consul/actions/runs/6124071996/job/16623327674