Skip to content

Commit e72e885

Browse files
committed
what what
1 parent 9f3a672 commit e72e885

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/promote-branch.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
env:
103103
promotion-type: ${{ inputs.promotion-type }}
104104
default-branch: ${{ needs.workflow-variables.outputs.default-branch }}
105-
source-branch: ${{ github.ref_name }}
105+
current-branch: ${{ github.ref_name }}
106106
target-branch: ${{ needs.workflow-variables.outputs.target-branch }}
107107
outputs:
108108
target-branch: ${{ steps.compose-target-branch.outputs.target-branch }}
@@ -112,19 +112,19 @@ jobs:
112112
- name: 'Check promotion type'
113113
if: ${{ (env.promotion-type != 'release') && (env.promotion-type != 'preview') }}
114114
run: |
115-
echo "Invalid promotion type: ${{ inputs.promotion-type }}"
115+
echo "Invalid promotion type ${{ inputs.promotion-type }}"
116116
exit 1
117-
- name: 'Validate source branch'
117+
- name: 'Validate current branch'
118118
if: ${{ (env.isdevelopment-branch == 'false') && (env.is-maintenance-branch == 'false') }}
119119
run: |
120-
echo "Invalid source branch: '${{ github.ref_name }}'"
120+
echo "Invalid current branch '${{ github.ref_name }}'"
121121
exit 1
122-
- name: 'Validate default and source branch'
123-
if: ${{ env.default-branch == env.source-branch }}
122+
- name: 'Validate default and current branch'
123+
if: ${{ env.default-branch == env.current-branch }}
124124
run: |
125-
echo "Default and source branch cannot be the same."
126-
echo "Default: '${{ env.default-branch }}'"
127-
echo "Source: '${{ env.source-branch }}'"
125+
echo "Default and current branch cannot be the same."
126+
echo "Default branch is '${{ env.default-branch }}'"
127+
echo "Current branch is '${{ env.current-branch }}'"
128128
exit 1
129129
130130
promote-branch:

0 commit comments

Comments
 (0)