Skip to content

Commit

Permalink
Base new commit on empty branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPenner committed Nov 16, 2023
1 parent a13d76f commit ec1a727
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/haddocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,8 @@ jobs:
# Erase any stale files
cd "$GITHUB_WORKSPACE"/haddocks
rm -rf ./*
git checkout --orphan an-empty-branch
cp -r "${docs_root}"/* "$GITHUB_WORKSPACE"/haddocks
if [[ -z "$(git status --porcelain)" ]]; then
echo No changes.
else
git add .
git commit -m "Regenerated haddocks based on ${GITHUB_SHA}"
git push --force origin haddocks
fi
git add .
git commit -m "Regenerated haddocks based on ${GITHUB_SHA}"
git push --force origin haddocks

0 comments on commit ec1a727

Please sign in to comment.