Skip to content

Commit

Permalink
ci: deploy-vitepress.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ktKongTong committed Dec 28, 2024
1 parent fa27b28 commit ce79bb7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy-vitepress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v4
- name: get diff
id: diff
run:
run: |
echo $(git diff --name-only HEAD master docs)
echo $(git diff --name-only HEAD master docs) | wc -w | xargs -I {} echo "DIFF={}" >> "$GITHUB_OUTPUT"
echo ${{ steps.diff.outputs.DIFF }}
Expand All @@ -39,9 +39,6 @@ jobs:
- name: Determine Deployment Environment
id: get-deploy-env
run: |
if [[ (echo $(git diff --name-only HEAD origin/fetch/60 docs) | grep doc | wc -l) == '0' ]]; then
echo $(git diff --name-only HEAD origin/fetch/60 docs) | grep doc | wc -l >> "DIFF=$0" >> $GITHUB_OUTPUT
else
if [[ ${{ github.event_name }} == 'pull_request' ]]; then
echo "TARGET_ENV=preview" >> $GITHUB_OUTPUT
else
Expand Down

0 comments on commit ce79bb7

Please sign in to comment.