Skip to content

Commit

Permalink
ci: Fix levitate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-mu committed Apr 30, 2024
1 parent ed1d406 commit 5dfa10b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/levitate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ jobs:
# find the current PR (if running in one)
- uses: jwalton/gh-find-current-pr@v1
id: finder
if: (inputs.comment-pr == 'yes' && steps.run-levitate.outputs.code == 1) || (env.comment-pr == 'yes' && env.skip-comment-if-compatible == 'no')
if: (inputs.comment-pr == 'yes' && steps.run-levitate.outputs.is-compatible-exit-code == 1) || (env.comment-pr == 'yes' && env.skip-comment-if-compatible == 'no')
# write a comment with levitate output
- uses: marocchino/sticky-pull-request-comment@v2
if: (env.comment-pr == 'yes' && steps.run-levitate.outputs.code == 1) || (env.comment-pr == 'yes' && env.skip-comment-if-compatible == 'no')
if: (env.comment-pr == 'yes' && steps.run-levitate.outputs.is-compatible-exit-code == 1) || (env.comment-pr == 'yes' && env.skip-comment-if-compatible == 'no')
with:
number: ${{ steps.finder.outputs.pr }}
message: |
Levitate is-compatible report:
${{ steps.run-levitate.outputs.is-compatible-stdout }}
- if: env.fail-if-incompatible == 'yes'
- if: env.fail-if-incompatible == 'yes' && steps.run-levitate.is-compatible-exit-code == 1
run: |
echo "Possible incompatibilities found. Check Levitate output for further information"
exit 1
Expand Down

0 comments on commit 5dfa10b

Please sign in to comment.