diff --git a/.github/workflows/pull-request-automation.yml b/.github/workflows/pull-request-automation.yml index cb6bcb8f104c11..e2e13339bae4f0 100644 --- a/.github/workflows/pull-request-automation.yml +++ b/.github/workflows/pull-request-automation.yml @@ -7,7 +7,11 @@ jobs: pull-request-automation: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + # Checkout defaults to using the branch which triggered the event, which + # isn't necessarily `master` (e.g. in the case of a merge). + - uses: actions/checkout@v2 + with: + ref: master # Changing into the action's directory and running `npm install` is much # faster than a full project-wide `npm ci`. - run: cd packages/project-management-automation && npm install