Skip to content

Commit

Permalink
chore: Add hub-restyled link to restyled errors.
Browse files Browse the repository at this point in the history
Also, curl doesn't actually work without GH token, so tell the user to
download the zip, instead.
  • Loading branch information
iphydf committed Dec 31, 2024
1 parent cb56dbd commit 2b5a258
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/common-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 3 -O buildifier "$BUILDIFIER_URL"
chmod +x buildifier
- name: Check
run: ./buildifier --lint=warn --warnings=all -mode diff $(find . -type f -name "WORKSPACE" -or -name "BUILD.*")
run: ./buildifier --lint=warn --warnings=all -mode diff $(find . -type f -name "WORKSPACE" -or -name "BUILD.*" -or -name "*.BUILD")

restyled:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -43,9 +43,14 @@ jobs:
cat >>"$GITHUB_STEP_SUMMARY" <<'EOM'
## Restyled
To apply these fixes locally, run:
To apply these fixes locally, either:
curl '${{ steps.upload.outputs.artifact-url }}' | unzip -p - restyled.diff | git am
Download '${{ steps.upload.outputs.artifact-url }}' with the web browser
$ cat restyled.diff.zip | unzip -p - restyled.diff | git am
Or use the [hub-restyled](https://github.com/TokTok/hs-github-tools/blob/master/tools/hub-restyled) tool:
$ hub-restyled
EOM
exit 1

0 comments on commit 2b5a258

Please sign in to comment.