Skip to content

Commit fa07342

Browse files
authored
Merge pull request #87 from keboola/uv
checkout main before docs commit to avoid detached HEAD push failure
2 parents 105ba7b + 158fbe3 commit fa07342

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,13 @@ jobs:
7474
if: github.event_name == 'release' || inputs.environment == 'production'
7575
run: |
7676
TAG_VERSION=${GITHUB_REF#refs/tags/}
77+
78+
# Checkout main before docs commit to avoid detached HEAD push failure
79+
git fetch origin main
80+
git checkout main
81+
7782
git config --global user.name 'KCF'
7883
git config --global user.email 'kcf@users.noreply.github.com'
7984
git add docs
8085
git commit -m "docs: update for release $TAG_VERSION 📚" || echo "No changes to commit"
81-
git push
86+
git push origin main

0 commit comments

Comments
 (0)