Skip to content

Commit

Permalink
workflows/comment: fix workflow syntax
Browse files Browse the repository at this point in the history
Github doesn't evaluate expressions unless they're inside ${{ }}

See: https://github.com/mpv-player/mpv/actions?query=is%3Afailure+event%3Aworkflow_run
  • Loading branch information
llyyr authored and sfan5 committed Sep 17, 2024
1 parent cae3aee commit 22620af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:

jobs:
pr_comment:
if: github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- env:
Expand Down

0 comments on commit 22620af

Please sign in to comment.