-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
.github/workflows/google-fonts.yml: fix changes check #187132
base: master
Are you sure you want to change the base?
Conversation
cc4c651
to
d01dc89
Compare
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.
Seems like it should work as intended, barring a few edge cases. But I don't really follow how this was broken before this change so I can't judge how appropriate these changes are.
AFAICT they do the same thing, but I presume that's not true otherwise we wouldn't have this PR.
I'll have a look through the comments in a bit, but this workflow hasn't worked correctly since all the workflows were reworked en-masse a couple of months ago. |
d01dc89
to
b3dc104
Compare
.github/workflows/google-fonts.yml
Outdated
git ls-files --modified --others -z | xargs -0 -I {} sh -c " | ||
FILENAME=\"{}\" | ||
MESSAGE=\$(basename \"\$FILENAME\" .rb) | ||
git add \"\$FILENAME\" | ||
git commit \"\$FILENAME\" --message=\"\$MESSAGE: \$MODE\" --message=\"\$COMMIT_BODY\"" |
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.
git ls-files --modified --others -z | xargs -0 -I {} sh -c " | |
FILENAME=\"{}\" | |
MESSAGE=\$(basename \"\$FILENAME\" .rb) | |
git add \"\$FILENAME\" | |
git commit \"\$FILENAME\" --message=\"\$MESSAGE: \$MODE\" --message=\"\$COMMIT_BODY\"" | |
git ls-files --modified --others -z | xargs -0 -I {} sh -c ' | |
MESSAGE="$(basename "{}" .rb)" | |
git add "{}" | |
git commit "{}" --message="$MESSAGE: $MODE" --message="$COMMIT_BODY"' |
You probably don't need all the escaping. If MODE
and COMMIT_BODY
are missing then try doing export MODE COMMIT_BODY
before calling xargs
f681110
to
898badc
Compare
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.
Seems fine!
8f6d1ef
to
a39055d
Compare
a39055d
to
e75298b
Compare
Important: Do not tick a checkbox if you haven’t performed its action. Honesty is indispensable for a smooth review process.
In the following questions
<cask>
is the token of the cask you're submitting.After making any changes to a cask, existing or new, verify:
brew audit --cask --online <cask>
is error-free.brew style --fix <cask>
reports no offenses.Additionally, if adding a new cask:
brew audit --cask --new <cask>
worked successfully.HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask <cask>
worked successfully.brew uninstall --cask <cask>
worked successfully.