Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-ji committed Sep 11, 2023
1 parent 6920167 commit 94641e8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,13 @@ jobs:
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git add .
git commit -m "Add dist folder"
git push origin master
# Check for changes
if git diff-index --quiet HEAD --; then
# No changes
echo "No changes to commit"
else
# Changes detected
git commit -m "Add dist folder"
git push origin master
fi

0 comments on commit 94641e8

Please sign in to comment.