Skip to content

Commit

Permalink
fix: check gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
1chooo committed Jan 16, 2024
1 parent 6992ecf commit fa417e3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/fetch-gist-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,16 @@ jobs:
mkdir -p /tmp/architecture
cp -r ./* /tmp/architecture
rm -rf ./blog/*
git fetch
git checkout gh-pages
# Check if 'gh-pages' branch exists, if not, create it
# Check if 'gh-pages' branch exists
if git show-ref --verify --quiet refs/heads/gh-pages; then
git fetch origin gh-pages:gh-pages
git checkout gh-pages
git pull
else
git checkout -b gh-pages
fi
git pull
git config user.email "autodeploy@github.com"
git config user.name "github action auto bot"
Expand Down

0 comments on commit fa417e3

Please sign in to comment.