diff --git a/.github/workflows/onpr_automerge.yaml b/.github/workflows/onpr_automerge.yaml index 6cdc55ad4..229106c9c 100644 --- a/.github/workflows/onpr_automerge.yaml +++ b/.github/workflows/onpr_automerge.yaml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Add the automerge label - if: ${{ (github.event.issue.pull_request) && (contains(github.event.comment.body, '/automerge')) }} # <--- The other way to compare if it's on a PR or on an issue + if: contains(github.event.comment.body, '/automerge' # <--- The other way to compare if it's on a PR or on an issue uses: actions/github-script@v4 with: github-token: ${{secrets.GITHUB_TOKEN}}