Skip to content

ci: fix filter_changed_files to not silently fail ;)#18723

Closed
nfi-hashicorp wants to merge 2 commits into
mainfrom
nfi-fix-go-test-check
Closed

ci: fix filter_changed_files to not silently fail ;)#18723
nfi-hashicorp wants to merge 2 commits into
mainfrom
nfi-fix-go-test-check

Conversation

@nfi-hashicorp
Copy link
Copy Markdown
Collaborator

@nfi-hashicorp nfi-hashicorp commented Sep 8, 2023

@github-actions github-actions Bot added the theme/contributing Additions and enhancements to community contributing materials label Sep 8, 2023
@nfi-hashicorp nfi-hashicorp added pr/no-changelog PR does not need a corresponding .changelog entry backport/1.15 labels Sep 8, 2023
@@ -1,5 +1,7 @@
#!/bin/bash

set -euo pipefail
Copy link
Copy Markdown
Collaborator Author

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

set -euo pipefail

# Get the list of changed files
files_to_check=$(git diff --name-only origin/$GITHUB_BASE_REF)
Copy link
Copy Markdown
Collaborator Author

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?

@nfi-hashicorp nfi-hashicorp requested a review from a team September 8, 2023 17:56
Copy link
Copy Markdown
Collaborator

@NiniOak NiniOak left a 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

@github-actions github-actions Bot deleted the nfi-fix-go-test-check branch August 29, 2025 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr/no-changelog PR does not need a corresponding .changelog entry theme/contributing Additions and enhancements to community contributing materials

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants