We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 105ba7b + 158fbe3 commit fa07342Copy full SHA for fa07342
.github/workflows/deploy.yml
@@ -74,8 +74,13 @@ jobs:
74
if: github.event_name == 'release' || inputs.environment == 'production'
75
run: |
76
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
82
git config --global user.name 'KCF'
83
git config --global user.email 'kcf@users.noreply.github.com'
84
git add docs
85
git commit -m "docs: update for release $TAG_VERSION 📚" || echo "No changes to commit"
- git push
86
+ git push origin main
0 commit comments