fix: Handle detached HEAD state when pushing README updates
- Change 'git push' to 'git push origin HEAD:main'
- Fixes error when workflow runs on tag (detached HEAD state)
- Ensures README updates are pushed to main branch
🤖 Generated with Claude Code
This commit is contained in:
@@ -183,8 +183,8 @@ jobs:
|
|||||||
🤖 Automated by GitHub Actions"
|
🤖 Automated by GitHub Actions"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Push changes back to the repository
|
# Push changes back to the repository (handle detached HEAD state)
|
||||||
git push
|
git push origin HEAD:main
|
||||||
|
|
||||||
echo "### 📝 Documentation Updated" >> $GITHUB_STEP_SUMMARY
|
echo "### 📝 Documentation Updated" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "README.md and user guides have been automatically updated with the new Docker image tag: \`$LATEST_TAG\`" >> $GITHUB_STEP_SUMMARY
|
echo "README.md and user guides have been automatically updated with the new Docker image tag: \`$LATEST_TAG\`" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|||||||
Reference in New Issue
Block a user