Updates variable for accessing branch name
Updates the variable used to access the source branch name in pull requests. The previous variable was deprecated or no longer functioning as expected. This change ensures the workflow can reliably retrieve the branch name for extracting JIRA card numbers.
This commit is contained in:
parent
7e9d471d26
commit
7b396a62d1
1 changed files with 2 additions and 2 deletions
|
|
@ -119,7 +119,7 @@ jobs:
|
|||
IS_REGRESSION="${{ parameters.isRegression }}"
|
||||
echo "isRegression: $IS_REGRESSION";
|
||||
if [[ "${{ parameters.isRegression }}" == "False" ]]; then
|
||||
branch_name=$(PullRequest.SourceBranch)
|
||||
branch_name=$(System.PullRequest.SourceBranch)
|
||||
echo "Retrieved branch name: '$branch_name'"
|
||||
JIRA_CARD_NUMBER="${branch_name##*/}"
|
||||
echo "Extracted JIRA Card number: '$JIRA_CARD_NUMBER'"
|
||||
|
|
@ -240,7 +240,7 @@ jobs:
|
|||
arguments: '--no-cache --pull'
|
||||
- bash: |
|
||||
printenv > "${{ parameters.envFileName }}"
|
||||
branch_name=$(PullRequest.SourceBranch)
|
||||
branch_name=$(System.PullRequest.SourceBranch)
|
||||
echo "Retrieved branch name: '$branch_name'"
|
||||
JIRA_CARD_NUMBER="${branch_name##*/}"
|
||||
echo "Extracted JIRA Card number: '$JIRA_CARD_NUMBER'"
|
||||
|
|
|
|||
Loading…
Reference in a new issue