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:
Patryk Ciechanski
2025-06-12 13:06:43 +02:00
parent 322b39c362
commit 068873f1f3

View File

@@ -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