Skip to content

Commit

Permalink
fix: Don't abort the restyled workflow before uploading a patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Nov 7, 2024
1 parent c248b2c commit d1090c9
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/common-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,27 @@ jobs:
- uses: restyled-io/actions/setup@v4
- id: restyler
uses: restyled-io/actions/run@v4
with:
fail-on-differences: true

- if: ${{ steps.restyler.outputs.patch }}
run: |
cat >>/tmp/restyled.diff <<'EOM'
${{ steps.restyler.outputs.patch }}
EOM
- id: upload
uses: actions/upload-artifact@v4
with:
path: /tmp/restyled.diff
if-no-files-found: ignore
overwrite: true

- if: ${{ steps.upload.outputs.artifact-url }}
run: |
cat >>"$GITHUB_STEP_SUMMARY" <<'EOM'
## Restyled
To apply these fixes locally, run:
curl '${{ steps.upload.outputs.artifact-url }}' | unzip -p - restyled.diff | git am
EOM

0 comments on commit d1090c9

Please sign in to comment.