File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,14 @@ jobs:
2525 terraform_version : ${{ steps.variables.outputs.terraform_version }}
2626 version : ${{ steps.variables.outputs.version }}
2727 does_pull_request_exist : ${{ steps.pr_exists.outputs.does_pull_request_exist }}
28+ branch_name : ${{ steps.variables.outputs.branch_name }}
2829 steps :
2930 - name : " Checkout code"
3031 uses : actions/checkout@v5
3132 - name : " Set CI/CD variables"
3233 id : variables
34+ env :
35+ BRANCH_NAME : ${{ github.head_ref }}
3336 run : |
3437 datetime=$(date -u +'%Y-%m-%dT%H:%M:%S%z')
3538 BUILD_DATETIME=$datetime make version-create-effective-file
4144 echo "python_version=$(grep "^python\s" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
4245 echo "terraform_version=$(grep "^terraform\s" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
4346 echo "version=$(head -n 1 .version 2> /dev/null || echo unknown)" >> $GITHUB_OUTPUT
47+ echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT
4448 - name : " Check if pull request exists for this branch"
4549 id : pr_exists
4650 env :
6670 export TERRAFORM_VERSION="${{ steps.variables.outputs.terraform_version }}"
6771 export VERSION="${{ steps.variables.outputs.version }}"
6872 export DOES_PULL_REQUEST_EXIST="${{ steps.pr_exists.outputs.does_pull_request_exist }}"
69- export BRANCH_NAME="${{ github.head_ref }}"
73+ export BRANCH_NAME="${{ steps.variables.outputs.branch_name }}"
7074 make list-variables
7175 commit-stage : # Recommended maximum execution time is 2 minutes
7276 name : " Commit stage"
You can’t perform that action at this time.
0 commit comments