summaryrefslogtreecommitdiff
path: root/.github/workflows/deploy-test-environment.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/deploy-test-environment.yml')
-rw-r--r--.github/workflows/deploy-test-environment.yml7
1 files changed, 2 insertions, 5 deletions
diff --git a/.github/workflows/deploy-test-environment.yml b/.github/workflows/deploy-test-environment.yml
index 77cdcfaf88..66b15beb91 100644
--- a/.github/workflows/deploy-test-environment.yml
+++ b/.github/workflows/deploy-test-environment.yml
@@ -50,12 +50,9 @@ jobs:
- name: Get PR ref
id: get-ref
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
- PR_NUMBER=$(jq --raw-output .issue.number $GITHUB_EVENT_PATH)
- PR_REF=$(gh pr view $PR_NUMBER --json headRefName -q '.headRefName')
- echo "pr-ref=$PR_REF" > $GITHUB_OUTPUT
+ PR_REF="refs/pull/${{ github.event.issue.number }}/head"
+ echo "pr-ref=$PR_REF" >> $GITHUB_OUTPUT
- name: Extract wait time
id: get-wait-time