Skip to content

Commit

Permalink
Update md-html-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
brown9804 authored Jan 13, 2025
1 parent 0457230 commit 0ab0b35
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/md-html-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ jobs:
# Configure Git with a bot email and name
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
# Stash any unstaged changes
git stash
# Pull the latest changes from the remote branch with rebase
git pull origin ${{ github.ref }} --rebase
# Apply the stashed changes
git stash pop
# Check for local changes and stash them if present
if [ -n "$(git status --porcelain)" ]; then
git stash
git pull origin ${{ github.ref }} --rebase
git stash pop
else
git pull origin ${{ github.ref }} --rebase
fi
# Add all changes, including untracked files
git add -A
# Commit the changes
Expand Down

0 comments on commit 0ab0b35

Please sign in to comment.