Skip to content

Commit

Permalink
version workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lamartinecabral committed Feb 16, 2024
1 parent c48e789 commit 85e863c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/version-change-detect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,18 @@ jobs:
- id: test
run: TEST=$(node -p "'$CURRENT' === '$PREVIOUS'") && echo "result=$TEST" >> "$GITHUB_OUTPUT"

print:
print-false:
needs: compare
env:
ISEQUAL: ${{needs.compare.outputs.isequal}}
if: needs.compare.outputs.isequal == 'false'
runs-on: ubuntu-latest
steps:
- name: Print
run: echo $ISEQUAL
run: echo false

print-true:
needs: compare
if: needs.compare.outputs.isequal == 'true'
runs-on: ubuntu-latest
steps:
- name: Print
run: echo true

0 comments on commit 85e863c

Please sign in to comment.