Skip to content

Commit 365461e

Browse files
committed
chore: include PR number in template artifact
Signed-off-by: Jorge Calvar <jorge.calvar@databricks.com>
1 parent cd84ed3 commit 365461e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,12 @@ jobs:
190190
id: version
191191
env:
192192
BRANCH: ${{ github.head_ref }}
193+
PR_NUMBER: ${{ github.event.pull_request.number }}
193194
run: |
194195
SANITIZED_BRANCH=$(echo "$BRANCH" | sed 's/[^a-zA-Z0-9-]/-/g' | sed 's/--*/-/g' | sed 's/^-//;s/-$//')
195196
SHORTSHA=$(git rev-parse --short HEAD)
196197
CURRENT_VERSION=$(node -p "require('./packages/appkit/package.json').version")
197-
PR_VERSION="${CURRENT_VERSION}-pr.${SHORTSHA}-${SANITIZED_BRANCH}"
198+
PR_VERSION="${CURRENT_VERSION}-pr.${SHORTSHA}-${SANITIZED_BRANCH}-${PR_NUMBER}"
198199
echo "version=$PR_VERSION" >> "$GITHUB_OUTPUT"
199200
200201
- name: Build SDK tarballs

0 commit comments

Comments
 (0)