Return InvalidCommand instead of UnsupportedCluster if the command is not handled in CHI #5235
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Restyled | |
on: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
restyled: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: restyled-io/actions/setup@v4 | |
with: | |
# TODO: Pinned to v0.6.0.2 because the latest release does not have a pre-built | |
# 'restyler-linux' asset. This broke our workflow as we rely on the pre-built binary. | |
# Remove this pin once a new release with the 'restyler-linux' asset is available. | |
tag: 'v0.6.0.2' | |
- id: restyler | |
uses: restyled-io/actions/run@v4 | |
with: | |
fail-on-differences: true | |
- if: | | |
!cancelled() && | |
steps.restyler.outputs.success == 'true' && | |
github.event.pull_request.head.repo.full_name == github.repository | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
base: ${{ steps.restyler.outputs.restyled-base }} | |
branch: ${{ steps.restyler.outputs.restyled-head }} | |
title: ${{ steps.restyler.outputs.restyled-title }} | |
body: ${{ steps.restyler.outputs.restyled-body }} | |
labels: "restyled" | |
reviewers: ${{ github.event.pull_request.user.login }} | |
delete-branch: true |