Skip to content

Commit

Permalink
fail on success, succeed on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
afujiwara-roblox committed Oct 2, 2023
1 parent a5ad851 commit 421e4cb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,18 @@ jobs:
- run: npm run all
- run: npm run pack

- name: setup-foreman with working-directory expect failure
- name: setup-foreman-failure
uses: ./
with:
version: "*"
token: ${{ secrets.GITHUB_TOKEN }}
working-directory: tests
allow-external-github-orgs: false
continue-on-error: true


- name: fail on success
if: ${{ failure() }}
if: always() && steps.setup-foreman-failiure.outcome == 'success'
run: exit 1

- name: succeed of failure
if: always()
run: exit 0

0 comments on commit 421e4cb

Please sign in to comment.