diff --git a/.github/workflows/pypi-publish-agent.yml b/.github/workflows/pypi-publish-agent.yml index f20cf2fb..25d7ac41 100644 --- a/.github/workflows/pypi-publish-agent.yml +++ b/.github/workflows/pypi-publish-agent.yml @@ -33,6 +33,14 @@ jobs: - uses: actions/checkout@v4 with: ref: main + fetch-depth: 0 + + - name: Ensure latest main branch + run: | + git fetch origin main + git reset --hard origin/main + echo "Current HEAD commit:" + git log -1 --oneline - name: Determine version id: get-version diff --git a/.github/workflows/pypi-reusable-publish.yml b/.github/workflows/pypi-reusable-publish.yml index 9be38105..71262391 100644 --- a/.github/workflows/pypi-reusable-publish.yml +++ b/.github/workflows/pypi-reusable-publish.yml @@ -50,6 +50,13 @@ jobs: ref: main fetch-depth: 0 # Full history for release creation + - name: Ensure latest main branch + run: | + git fetch origin main + git reset --hard origin/main + echo "Current HEAD commit:" + git log -1 --oneline + - name: Set up Python uses: actions/setup-python@v4 with: