Skip to content

Commit 24ed23a

Browse files
committed
z\cas
1 parent 04a9d34 commit 24ed23a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/promote-branch.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)