Skip to content

Commit

Permalink
Fix updating PR comments from tests with secrets workflow
Browse files Browse the repository at this point in the history
Don't use `always()` in step condition with additional predicates,
because it ignores other predicates.
  • Loading branch information
nineinchnick authored and wendigo committed Jul 14, 2023
1 parent ed65100 commit 219eea6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/update-check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runs:
steps:
- uses: actions/github-script@v6
id: update-check-run
if: always() && inputs.check_name != '' && inputs.conclusion != ''
if: inputs.check_name != '' && inputs.conclusion != ''
env:
number: ${{ inputs.pull_request_number }}
check_name: ${{ inputs.check_name }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,6 @@ jobs:
- name: Update PR check
uses: ./.github/actions/update-check
if: >-
always() &&
github.event_name == 'repository_dispatch' &&
github.event.client_payload.slash_command.args.named.sha != '' &&
github.event.client_payload.pull_request.head.sha == github.event.client_payload.slash_command.args.named.sha
Expand Down

0 comments on commit 219eea6

Please sign in to comment.