Skip to content

Commit aa02a1a

Browse files
Short app name precaution
1 parent 76c55df commit aa02a1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ jobs:
5858
id: appname
5959
run: |
6060
OWNER_SHORT=${GITHUB_REPOSITORY_OWNER:0:5}
61-
APP_NAME="${OWNER_SHORT}-${GITHUB_REPOSITORY}-${GITHUB_EVENT_NUMBER}"
61+
REPO_NAME=$(basename "$GITHUB_REPOSITORY")
62+
PR_NUMBER=$(jq .number "$GITHUB_EVENT_PATH")
63+
APP_NAME="${OWNER_SHORT}-${REPO_NAME}-${PR_NUMBER}"
6264
echo "APP_NAME=$APP_NAME"
6365
echo "APP_NAME=$APP_NAME" >> $GITHUB_ENV
6466

0 commit comments

Comments
 (0)