Skip to content

Commit a690bdd

Browse files
committed
Use short commit hash
1 parent fe972b9 commit a690bdd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/preview.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,13 @@ jobs:
3939
BRANCH_NAME=$(make safe_branch BRANCH=$GITHUB_BRANCH_NAME)
4040
echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_ENV
4141
42-
- name: Build the website
42+
- name: Export short commit hash
4343
run:
44+
echo "GITHUB_COMMIT_HASH=$(git rev-parse --short
45+
"$GITHUB_COMMIT_HASH")" >> "$GITHUB_ENV"
46+
47+
- name: Build the website
48+
run: |
4449
make build MODE=preview
4550
SITE_URL="https://${BRANCH_NAME}.ep-preview.click"
4651
GIT_VERSION="${GITHUB_COMMIT_HASH}"

0 commit comments

Comments
 (0)