Skip to content

Commit c1f7943

Browse files
committed
asdsq
1 parent 6af7a11 commit c1f7943

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/promote-branch.yml

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

0 commit comments

Comments
 (0)