Merge pull request #595 from trycua/fix-ensure-latest-main-fetch

Ensure workflows fetch absolute latest main after version bump
This commit is contained in:
Francesco Bonacci
2025-11-18 23:48:37 +01:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

View File

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

View File

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