diff --git a/.github/workflows/build_and_publish_docker.yml b/.github/workflows/build_and_publish_docker.yml index 4708819..59c9505 100644 --- a/.github/workflows/build_and_publish_docker.yml +++ b/.github/workflows/build_and_publish_docker.yml @@ -183,8 +183,8 @@ jobs: 🤖 Automated by GitHub Actions" fi - # Push changes back to the repository - git push + # Push changes back to the repository (handle detached HEAD state) + git push origin HEAD:main 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