diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 10f9d13..624489f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,12 +12,8 @@ jobs: update: runs-on: ubuntu-latest # Read the notes about preventing merges overwriting owners created by PR - if: github.event.pull_request.merged != true + if: ${{ !startsWith( github.event.head_commit.message, 'Merge pull request' ) }} steps: - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJson(github.event) }} - run: echo "$GITHUB_CONTEXT" - uses: actions/checkout@master with: fetch-depth: 0 diff --git a/README.md b/README.md index 7d9190b..9726ca3 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ jobs: update: runs-on: ubuntu-latest # Read the notes about preventing merges overwriting owners created by PR - if: github.event.pull_request.merged != true + if: ${{ !startsWith( github.event.head_commit.message, 'Merge pull request' ) }} steps: - uses: actions/checkout@master with: