From c5b5d532dbc224feeb07221b9932081c92d80769 Mon Sep 17 00:00:00 2001 From: Simon Davis Date: Fri, 4 Dec 2020 09:44:27 -0800 Subject: [PATCH 1/2] specify master as checkout ref to ensure next milestone can be found --- .github/workflows/milestone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/milestone.yml b/.github/workflows/milestone.yml index ef065870cd22..70103d7fd93d 100644 --- a/.github/workflows/milestone.yml +++ b/.github/workflows/milestone.yml @@ -8,6 +8,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + ref: master - id: get-current-milestone run: | echo ::set-output name=current_milestone::v$(head -1 CHANGELOG.md | cut -d " " -f 2) From 74649fcf0ee4dc85954f1e9b682fc0e661e41f01 Mon Sep 17 00:00:00 2001 From: Simon Davis Date: Fri, 4 Dec 2020 15:04:19 -0800 Subject: [PATCH 2/2] use base ref from event payload --- .github/workflows/milestone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/milestone.yml b/.github/workflows/milestone.yml index 70103d7fd93d..8e93930efe1a 100644 --- a/.github/workflows/milestone.yml +++ b/.github/workflows/milestone.yml @@ -9,7 +9,7 @@ jobs: steps: - uses: actions/checkout@v2 with: - ref: master + ref: ${{ github.event.pull_request.base.ref }} - id: get-current-milestone run: | echo ::set-output name=current_milestone::v$(head -1 CHANGELOG.md | cut -d " " -f 2)