From 2ef6f7bba22825c0219eb7c52b34f45c5cb61467 Mon Sep 17 00:00:00 2001 From: KC Berg Date: Tue, 8 Jul 2025 18:23:56 -0600 Subject: [PATCH] ci: add verbose git logging to troubleshoot tag push permission issues --- .github/workflows/ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00b639c..186447c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,19 +44,30 @@ jobs: - name: Set up git for pushing run: | git remote set-url origin https://x-access-token:${{ steps.generate_token.outputs.token }}@github.com/${{ github.repository }}.git + - name: Log git remote and user + run: | + git remote -v + git config --get user.name || echo "No user.name set" + git config --get user.email || echo "No user.email set" + git config --list - name: Set git user for HawkyMcBuilderFace bot run: | git config user.name "HawkyMcBuilderFace[bot]" git config user.email "222944+HawkyMcBuilderFace[bot]@users.noreply.github.com" + - name: Log git user after config + run: | + git config --get user.name + git config --get user.email - name: Get version from pyproject.toml id: get_version run: | VERSION=$(grep '^version = ' pyproject.toml | head -1 | cut -d '"' -f2) echo "version=$VERSION" >> $GITHUB_OUTPUT - - name: Create and push tag for current version + - name: Create and push tag for current version (with verbose logging) run: | git tag v${{ steps.get_version.outputs.version }} - git push origin v${{ steps.get_version.outputs.version }} + git fetch origin --tags --verbose + GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_CURL_VERBOSE=1 git push origin v${{ steps.get_version.outputs.version }} bump-version: if: github.ref == 'refs/heads/main' && github.event_name == 'push'