mirror of
https://github.com/trycua/computer.git
synced 2026-01-05 04:50:08 -06:00
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:
8
.github/workflows/pypi-publish-agent.yml
vendored
8
.github/workflows/pypi-publish-agent.yml
vendored
@@ -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
|
||||
|
||||
7
.github/workflows/pypi-reusable-publish.yml
vendored
7
.github/workflows/pypi-reusable-publish.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user