[macos-runner] Fix build number bump - agvtool was silently no-oping

Upload rejected with "bundle version must be higher than previously
uploaded version: 1" - agvtool new-version requires VERSIONING_SYSTEM =
apple-generic, which this project never sets, so it did nothing every
run despite reporting success. Pass CURRENT_PROJECT_VERSION directly
via xcargs instead, parameterized from the job's run number.
This commit is contained in:
Daniel Arantes Loverde
2026-07-31 11:36:50 -03:00
parent 57a4ad3086
commit 007227f0ea
3 changed files with 8 additions and 11 deletions

View File

@@ -20,6 +20,7 @@ jobs:
APPLE_ID: ${{ secrets.APPLE_ID }}
ITC_TEAM_ID: ${{ secrets.ITC_TEAM_ID }}
DEVELOPMENT_TEAM: ${{ secrets.DEVELOPMENT_TEAM }}
BUILD_NUMBER: ${{ gitea.run_number }}
steps:
- name: Checkout
@@ -32,11 +33,6 @@ jobs:
git -c credential.helper= -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=30 clone "$AUTH_URL" .
git checkout "${{ gitea.sha }}"
- name: Set build number
run: |
cd Darwin
agvtool new-version -all ${{ gitea.run_number }}
- name: Write App Store Connect API key
run: |
cat > Darwin/fastlane/apikey.json <<EOF

View File

@@ -20,6 +20,7 @@ jobs:
APPLE_ID: ${{ secrets.APPLE_ID }}
ITC_TEAM_ID: ${{ secrets.ITC_TEAM_ID }}
DEVELOPMENT_TEAM: ${{ secrets.DEVELOPMENT_TEAM }}
BUILD_NUMBER: ${{ gitea.run_number }}
steps:
- name: Checkout
@@ -39,11 +40,6 @@ jobs:
exit 1
fi
- name: Set build number
run: |
cd Darwin
agvtool new-version -all ${{ gitea.run_number }}
- name: Write App Store Connect API key
run: |
cat > Darwin/fastlane/apikey.json <<EOF