4747 - name : Determine Branch Configurations
4848 if : steps.check.outputs.is_release_pr == 'true'
4949 id : config
50+ env :
51+ CANDIDATE_BRANCH : ${{ github.event.pull_request.base.ref }}
5052 run : |
51- CANDIDATE_BRANCH="${{ github.event.pull_request.base.ref }}"
5253 if [ "$CANDIDATE_BRANCH" = "release/v1-candidate" ]; then
5354 echo "base_branch=v1" >> $GITHUB_OUTPUT
5455 echo "config_file=.github/release-please-config-v1.json" >> $GITHUB_OUTPUT
@@ -59,18 +60,21 @@ jobs:
5960 echo "manifest_file=.github/.release-please-manifest.json" >> $GITHUB_OUTPUT
6061 fi
6162
62- - uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
63+ - uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
6364 if : steps.check.outputs.is_release_pr == 'true'
6465 with :
66+ persist-credentials : false
6567 ref : ${{ github.event.pull_request.base.ref }}
6668 token : ${{ secrets.RELEASE_PAT }}
6769 fetch-depth : 0
6870
6971 - name : Extract version from manifest
7072 if : steps.check.outputs.is_release_pr == 'true'
7173 id : version
74+ env :
75+ MANIFEST_FILE : ${{ steps.config.outputs.manifest_file }}
7276 run : |
73- VERSION=$(jq -r '.["."]' "${{ steps.config.outputs.manifest_file }} ")
77+ VERSION=$(jq -r '.["."]' "$MANIFEST_FILE ")
7478 echo "version=$VERSION" >> $GITHUB_OUTPUT
7579 echo "Extracted version: $VERSION"
7680
@@ -85,10 +89,11 @@ jobs:
8589
8690 - name : Record last-release-sha for release-please
8791 if : steps.check.outputs.is_release_pr == 'true'
92+ env :
93+ BASE_BRANCH : ${{ steps.config.outputs.base_branch }}
94+ CONFIG_FILE : ${{ steps.config.outputs.config_file }}
95+ CANDIDATE_BRANCH : ${{ github.event.pull_request.base.ref }}
8896 run : |
89- BASE_BRANCH="${{ steps.config.outputs.base_branch }}"
90- CONFIG_FILE="${{ steps.config.outputs.config_file }}"
91- CANDIDATE_BRANCH="${{ github.event.pull_request.base.ref }}"
9297
9398 git fetch origin "$BASE_BRANCH"
9499 CUT_SHA=$(git merge-base "origin/$BASE_BRANCH" HEAD)
@@ -103,9 +108,11 @@ jobs:
103108
104109 - name : Rename candidate to release/v{version}
105110 if : steps.check.outputs.is_release_pr == 'true'
111+ env :
112+ STEPS_VERSION_OUTPUTS_VERSION : ${{ steps.version.outputs.version }}
113+ CANDIDATE_BRANCH : ${{ github.event.pull_request.base.ref }}
106114 run : |
107115 VERSION="v${STEPS_VERSION_OUTPUTS_VERSION}"
108- CANDIDATE_BRANCH="${{ github.event.pull_request.base.ref }}"
109116 git push origin "$CANDIDATE_BRANCH:refs/heads/release/$VERSION" ":$CANDIDATE_BRANCH"
110117 echo "Renamed $CANDIDATE_BRANCH to release/$VERSION"
111118 env :
0 commit comments