Skip to content

Commit

Permalink
🔥 remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Nov 18, 2024
1 parent 7147fe2 commit 40179f2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/website-preview-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,15 @@ jobs:
- name: Restore Context
run: |
PR_NUMBER=$(cat ./pr-number)
if ! [[ "$PR_NUMBER" =~ ^[0-9]+$ ]]; then
echo "Invalid PR number: $PR_NUMBER"
if ! [[ "${PR_NUMBER}" =~ ^[0-9]+$ ]]; then
echo "Invalid PR number: ${PR_NUMBER}"
exit 1
fi
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
echo "PR_NUMBER=${PR_NUMBER}" >> "${GITHUB_ENV}"
- name: Set Deploy Name
run: |
echo "DEPLOY_NAME=deploy-preview-${PR_NUMBER}" >> $GITHUB_ENV
env:
PR_NUMBER: ${{ env.PR_NUMBER }}
echo "DEPLOY_NAME=deploy-preview-${PR_NUMBER}" >> "${GITHUB_ENV}"
- name: Deploy to Netlify
id: deploy
Expand Down

0 comments on commit 40179f2

Please sign in to comment.