Skip to content

Commit 02fa4b1

Browse files
committed
Fix version check GHA to not always show green tick
1 parent 54b7da1 commit 02fa4b1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/version_check.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,11 @@ jobs:
5151
5252
- name: Check version consistency
5353
id: version_check
54-
continue-on-error: true
5554
run: julia --color=yes .github/workflows/version_check.jl
5655

5756
- name: Create a PR with suggested changes
5857
id: create_pr
59-
if: steps.version_check.outcome == 'failure' && env.TARGET_IS_MASTER && (! env.IS_PR_FROM_FORK)
58+
if: always() && steps.version_check.outcome == 'failure' && env.TARGET_IS_MASTER && (! env.IS_PR_FROM_FORK)
6059
uses: peter-evans/create-pull-request@v6
6160
with:
6261
base: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}
@@ -66,7 +65,7 @@ jobs:
6665
title: "Update Turing.jl version to match latest release"
6766

6867
- name: Comment on PR about suggested changes (if PR was made)
69-
if: github.event_name == 'pull_request' && steps.create_pr.outputs.pull-request-operation == 'created'
68+
if: always() && github.event_name == 'pull_request' && steps.create_pr.outputs.pull-request-operation == 'created'
7069
uses: thollander/actions-comment-pull-request@v2
7170
with:
7271
message: |

0 commit comments

Comments
 (0)