Skip to content

Commit

Permalink
new try
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Dec 28, 2024
1 parent b8b494c commit de400a2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/netlify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ jobs:
- name: Check if /docs/ has changes
id: check_docs
run: |
git fetch origin main
changes=$(git diff --name-only HEAD~1 HEAD | grep '^docs/')
if [ -z "$changes" ]; then
changes=$(git diff --name-only HEAD~1 HEAD | grep '^docs/' || true)
if [ -z "$changes" ]; then
echo "No changes in /docs/. Skipping deployment."
echo "deploy=false" >> $GITHUB_ENV
else
else
echo "Changes detected in /docs/. Proceeding with deployment."
echo "deploy=true" >> $GITHUB_ENV
Expand Down

0 comments on commit de400a2

Please sign in to comment.