Skip to content

Commit

Permalink
Changed boolean compare
Browse files Browse the repository at this point in the history
  • Loading branch information
AErmie committed Jul 15, 2024
1 parent ea34f25 commit 15aec67
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/workflow-logic-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
fail-job-2:
description: 'Job2 should fail?'
type: boolean
default: true
required: true

permissions:
Expand All @@ -29,11 +28,11 @@ jobs:
uses: actions/checkout@v4

- name: Fail Job = ${{ github.event.inputs.fail-job-2 }}
if: ${{ github.event.inputs.fail-job-2 == 'true' }}
if: ${{ github.event.inputs.fail-job-2 == true }}
run: exit 1

- name: Fail Job = ${{ github.event.inputs.fail-job-2 }}
if: ${{ ! github.event.inputs.fail-job-2 == 'false' }}
if: ${{ ! github.event.inputs.fail-job-2 == false }}
run: exit 0

job3:
Expand Down

0 comments on commit 15aec67

Please sign in to comment.