Skip to content

Commit

Permalink
[non-related] fix(ci): Fix the syntax error of PR build
Browse files Browse the repository at this point in the history
Signed-off-by: crrashh1542 <kotsuki@crrashh.com>
  • Loading branch information
crrashh1542 committed Jul 28, 2024
1 parent abb6243 commit 1f6c7fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ jobs:
- name: 📙 Get Build Information
id: get-info
run: |
if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
COMMIT_COUNT=$(git rev-list --count HEAD)
BUILD_DATE=$(date "+%y%m%d")
HEAD_SHA=$(git rev-parse --short HEAD)
echo "DIST_NAME=dist-PR-${COMMIT_COUNT}-${BUILD_DATE}-${HEAD_SHA}" >> $GITHUB_OUTPUT
COMMIT_COUNT=$(git rev-list --count HEAD)
BUILD_DATE=$(date "+%y%m%d")
HEAD_SHA=$(git rev-parse --short HEAD)
echo "DIST_NAME=dist-PR-${COMMIT_COUNT}-${BUILD_DATE}-${HEAD_SHA}" >> $GITHUB_OUTPUT
build:
name: Build Production Pages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy to Github Pages
on:
push:
branches: [ main, opt/ci ]
branches: [ main ]

jobs:
setup:
Expand All @@ -22,7 +22,7 @@ jobs:
COMMIT_COUNT=$(git rev-list --count HEAD)
BUILD_DATE=$(date "+%y%m%d")
HEAD_SHA=$(git rev-parse --short HEAD)
echo "DIST_NAME=dist-${COMMIT_COUNT}-${BUILD_DATE}-${HEAD_SHA}" >> $GITHUB_OUTPUT
echo "DIST_NAME=dist-b${COMMIT_COUNT}-${BUILD_DATE}-${HEAD_SHA}" >> $GITHUB_OUTPUT
main:
name: Build Production Pages
Expand Down

0 comments on commit 1f6c7fe

Please sign in to comment.