Skip to content

Commit d28c445

Browse files
committed
feat: devtest using the pr number
1 parent ddcc857 commit d28c445

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/stage-4-deploy-devtest.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ jobs:
8585
env:
8686
COMMIT_SHA: ${{ inputs.commit_sha }}
8787
ENVIRONMENT_NAME: ${{ matrix.environment }}
88+
PR_NUMBER: ${{ inputs.pr_number }}
89+
#GH_TOKEN: ${{ github.token }}
8890
run: |
8991
set -euo pipefail
9092
# Define common variables
@@ -101,9 +103,9 @@ jobs:
101103
devtest_short_sha="devtest_${git_short_sha}"
102104
103105
# Get the PR Number tag
104-
PR_NUM=$(gh api repos/${{ github.repository }}/commits/${{ github.sha }}/pulls --jq '.[0].number')
105-
PR_NUM_TAG="pr${PR_NUM}"
106-
DEVTEST_PR_NUM_TAG="devtest_${PR_NUM_TAG}"
106+
#PR_NUM=$(gh api repos/${{ github.repository }}/commits/${{ github.sha }}/pulls --jq '.[0].number')
107+
#PR_NUM_TAG="pr${PR_NUM}"
108+
DEVTEST_PR_NUM_TAG="devtest_${PR_NUMBER}"
107109
108110
# Prepare parameters as separate key=value tokens
109111
param_image="dockerImageTag=${DEVTEST_PR_NUM_TAG}"

0 commit comments

Comments
 (0)