From b655626356082d955b924ee94ff634b64cef1abf Mon Sep 17 00:00:00 2001 From: William Parr Date: Fri, 2 Aug 2024 11:24:53 +0100 Subject: [PATCH] fix: prefer using fromJson with outputs for branch name --- .github/workflows/conventional-commit-release.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/conventional-commit-release.yaml b/.github/workflows/conventional-commit-release.yaml index 88c5ee7..171c37b 100644 --- a/.github/workflows/conventional-commit-release.yaml +++ b/.github/workflows/conventional-commit-release.yaml @@ -240,9 +240,7 @@ jobs: id: checkout-release-branch uses: actions/checkout@v4.1.1 with: - # the branch name will always follow this pattern - # https://github.com/googleapis/release-please/blob/439290c63c5790d9161396fdba1daca4b8781e44/src/util/branch-name.ts#L211 - ref: "release-please--branches--${{ github.ref_name }}--components--${{ github.event.repository.name }}" + ref: ${{ fromJson(steps.release.outputs.pr).headBranchName }} fetch-depth: 0 - name: Import GPG key