We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 505fd45 commit 01c7485Copy full SHA for 01c7485
scripts/deploy-pr.sh
@@ -4,15 +4,9 @@
4
set -euox pipefail
5
6
branchName=$(gh pr view --json headRefName | jq -r .headRefName)
7
+
8
if [[ "$branchName" == "main" ]]; then
- # get commit sha --short
9
- commitSha=$(git rev-parse --short HEAD)
10
- gh workflow run pr-deploy.yaml /
11
- --ref $branchName /
12
- -f pr_number=${commitSha}
+ gh workflow run pr-deploy.yaml --ref $branchName -f pr_number=$(git rev-parse --short HEAD)
13
else
14
- prNumber=$(gh pr view --json number | jq -r .number)
15
16
17
- -f pr_number=${prNumber}
+ gh workflow run pr-deploy.yaml --ref $branchName -f pr_number=$(gh pr view --json number | jq -r .number)
18
fi
0 commit comments