Skip to content

Commit

Permalink
if: steps.myStepId1.outcome == 'failure'
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiro authored Jan 27, 2024
1 parent 0094e84 commit 1b2854e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/prettier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
prettier_options: '--write . --ignore-path .prettierignore.ci'

- name: Push to protected branch
if: $(failure())
if: steps.prettier.outcome == 'failure'
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.TOKEN_GITHUB }}
Expand Down

1 comment on commit 1b2854e

@vercel
Copy link

@vercel vercel bot commented on 1b2854e Jan 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.