-
Notifications
You must be signed in to change notification settings - Fork 468
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
[DOC-9457] Prevent special characters in filenames processed by changed_files.yml #18191
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for cockroachdb-api-docs canceled.
|
✅ Deploy Preview for cockroachdb-interactivetutorials-docs canceled.
|
✅ Netlify Preview
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Left a couple of questions. How are you testing this, btw?
safe_file=$(printf '%q' "$file") | ||
escaped_files+=("$safe_file") | ||
done | ||
printf "%s\n" "${escaped_files[@]}" > $GITHUB_ENV |
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.
Does $GITHUB_ENV carry any state or are you creating it here?
@@ -74,7 +81,8 @@ jobs: | |||
output+="</ul>" | |||
} | |||
|
|||
for file in ${files[@]}; do | |||
env_files=($(cat $GITHUB_ENV)) | |||
for file in "${env_files[@]}"; do |
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.
Is env_files actually going to be a list?
Follow up to #18181 to resolve the same matter but for our custom copy of that GH action.