File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,11 +52,11 @@ jobs:
5252 - name : ' Validate target branch'
5353 run : |
5454 if [[ "${{ inputs.promotion-type }}" == "preview" ]]; then
55- target_branch=" preview/${{ needs.versioning.outputs.friendly-version }}"
55+ echo "target-branch= preview/${{ needs.versioning.outputs.friendly-version }}" >> $GITHUB_ENV
5656 else
57- target_branch=" release/${{ needs.versioning.outputs.friendly-version }}"
57+ echo "target-branch= release/${{ needs.versioning.outputs.friendly-version }}" >> $GITHUB_ENV
5858 fi
5959
60- echo "Target branch: $target_branch "
60+ echo "Target branch: ${{ env.target-branch }} "
6161
62- git ls-remote --exit-code --heads ${{ github.repositoryUrl }} refs/heads/$target_branch
62+ git ls-remote --exit-code --heads ${{ github.repositoryUrl }} refs/heads/${{ env.target-branch }}
You can’t perform that action at this time.
0 commit comments