-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] GH check: add file-expired check, and more #6189
[CI] GH check: add file-expired check, and more #6189
Conversation
6fde4f4
to
3c8de0c
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.
RSLGTM.
3c8de0c
to
d9d31a4
Compare
|
Hmm, not sure that'll work, but we'll see. |
env: | ||
FIX_CMD: fix:dict | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm run fix:dict | ||
- run: npm run ${{ env.FIX_CMD }} | ||
- name: Any changed files? | ||
run: | | ||
CHANGES=`git status --porcelain` | ||
if [[ $CHANGES ]]; then | ||
echo "Locally run `npm run fix:dict` and commit the changes:" | ||
echo "Add comment '/fix:${{ env.FIX_CMD }}' to your PR in GitHub," | ||
echo "or locally run 'npm run ${{ env.FIX_CMD }}' and commit the changes:" | ||
echo "$CHANGES" | ||
exit 1 | ||
else |
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.
Note to self: might want to define a script so that this can be reused.
.github/workflows/check-format.yml
to.github/workflows/check-file.yml
since the checks are over files, and more than just formatting relatedcheck:expired
as a PR-build check in.github/workflows/check-file.yml
check-formatting
:PRETTIER_AT_VERS
scripts/npx-helper.sh
script to be used instead of setting env var likePRETTIER_AT_VERS
__check:format
to be more Windows friendsly.@trask can you give this a try under Windows and let me know if this help?