Skip to content

Commit

Permalink
fix if
Browse files Browse the repository at this point in the history
  • Loading branch information
Kislovskiy committed Apr 14, 2024
1 parent ff3db08 commit b6ed8c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/2024_PyConDE_random_generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
consumer-of-generator-odd:
needs: random-number-generator
runs-on: ubuntu-latest
if: ${{ !needs.random-number-generator.outputs.is-even }}
if: ${{ needs.random-number-generator.outputs.is-even == 0 }}
steps:
- run: echo "The number is ${{ needs.random-number-generator.outputs.number }} is odd"

consumer-of-generator-even:
needs: random-number-generator
runs-on: ubuntu-latest
if: ${{ needs.random-number-generator.outputs.is-even }}
if: ${{ needs.random-number-generator.outputs.is-even == 1 }}
steps:
- run: echo "The number is ${{ needs.random-number-generator.outputs.number }} is even"

0 comments on commit b6ed8c1

Please sign in to comment.