File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,16 +65,16 @@ jobs:
6565 target-branch : ' '
6666 run : |
6767 if [[ "${{ inputs.promotion-type }}" == "preview" ]]; then
68- echo "target-branch=preview/${{ needs.versioning.outputs.friendly-version }}" >> $GITHUB_ENV
68+ target_branch=$( echo "target-branch=preview/${{ needs.versioning.outputs.friendly-version }}")
6969 else
70- echo "target-branch=release/${{ needs.versioning.outputs.friendly-version }}" >> $GITHUB_ENV
70+ target_branch=$( echo "target-branch=release/${{ needs.versioning.outputs.friendly-version }}")
7171 fi
7272
73- echo "Target branch: ${{ env.target-branch }}"
73+ echo "Target branch: $target_branch
7474
75- git ls-remote --exit-code --heads origin ${{ env.target-branch }}
75+ git ls-remote --exit-code --heads origin $target_branch
7676
7777 if [[ $? -ne 0 ]]; then
78- echo "Target branch does not exist: ${{ env.target-branch }} "
78+ echo "Target branch does not exist: $target_branch "
7979 exit 1
8080 fi
You can’t perform that action at this time.
0 commit comments