From 690bb48a1fe60772cfc2e53f72e0d7a751b68579 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Mon, 20 Jan 2020 15:18:29 -0500 Subject: [PATCH 1/2] Framework: Use fixed version of checkout action Avoid unintended breaking changes. To a lesser extent, helps clarify that this tag refers to the _version of the action_, not the branch being checked out. --- .github/workflows/pull-request-automation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request-automation.yml b/.github/workflows/pull-request-automation.yml index cb6bcb8f104c11..c9a2c615e30778 100644 --- a/.github/workflows/pull-request-automation.yml +++ b/.github/workflows/pull-request-automation.yml @@ -7,7 +7,7 @@ jobs: pull-request-automation: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v2 # 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 From 9135cb905c03a2b249d462747f43a67d8bd1ed55 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Mon, 20 Jan 2020 15:20:02 -0500 Subject: [PATCH 2/2] Framework: Configure PR automation checkout to master branch --- .github/workflows/pull-request-automation.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pull-request-automation.yml b/.github/workflows/pull-request-automation.yml index c9a2c615e30778..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: + # 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