From e9c2214a18f170bc47c9da008114f20481844a73 Mon Sep 17 00:00:00 2001 From: jidicula Date: Fri, 19 Mar 2021 16:22:44 -0400 Subject: [PATCH] ci: Use GitHub context object for PR number See https://stackoverflow.com/a/63315340/6310633 --- .github/workflows/publish-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 2fbbb44..e4c694a 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -61,7 +61,7 @@ jobs: - name: "Get PR number" run: | # https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request - echo PR_NUMBER=$(sed 's/\/merge//' <<< "${${{github.ref}}#refs/pull/}") >> $GITHUB_ENV + echo "PR_NUMBER=#${{ github.event.pull_request.number }}" >> $GITHUB_ENV echo "${{env.PR_NUMBER}}" - name: "Mirror release PR to dev" uses: thomaseizinger/create-pull-request@1.0.0