File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 4747 branch_name=${GITHUB_HEAD_REF:-$(echo $GITHUB_REF | sed 's#refs/heads/##')}
4848 echo "Current branch is '$branch_name'"
4949
50+ if [ -z "${{ inputs.environment }}" ]; then
51+ ENVIRONMENT="internal-dev"
52+ else
53+ ENVIRONMENT="${{ inputs.environment }}"
54+ fi
55+
5056 pr_json=$(gh pr list --head "$branch_name" --state open --json number --limit 1)
5157 pr_number=$(echo "$pr_json" | jq -r '.[0].number // empty')
5258
6268 APIM_ENV="${{ inputs.environment }}"
6369 fi
6470
65- if [ -z "${{ inputs.environment }}" ]; then
66- ENVIRONMENT="internal-dev"
67- else
68- ENVIRONMENT="${{ inputs.environment }}"
69- fi
7071 echo "ENVIRONMENT=$ENVIRONMENT" >> $GITHUB_ENV
7172 echo "APIM_ENV=$APIM_ENV" >> $GITHUB_ENV
7273 - name : Build environment oas
You can’t perform that action at this time.
0 commit comments