Skip to content

Commit 647e574

Browse files
committed
Fix the Mac workflow
1 parent b01c046 commit 647e574

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -466,30 +466,33 @@ jobs:
466466
if: steps.commit.outcome == 'success'
467467
run: git -C KhaTools_macos tag haxe_$GITHUB_SHA
468468
- name: Push x64 binary
469-
id: push1
469+
id: push_x64
470470
if: runner.arch == 'X64' && steps.commit.outcome == 'success' && steps.tag.outcome == 'success'
471471
continue-on-error: true
472472
run: git -C KhaTools_macos push https://Kode-Robbot:[email protected]/Kode/KhaTools_macos_x64.git main --tags
473473
env:
474474
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
475475
- name: Push arm64 binary
476-
id: push1
476+
id: push_arm64
477477
if: runner.arch == 'ARM64' && steps.commit.outcome == 'success' && steps.tag.outcome == 'success'
478478
continue-on-error: true
479479
run: git -C KhaTools_macos push https://Kode-Robbot:[email protected]/Kode/KhaTools_macos_arm64.git main --tags
480480
env:
481481
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
482-
- name: Pull
483-
if: steps.commit.outcome == 'success' && steps.tag.outcome == 'success' && steps.push1.outcome != 'success'
482+
- name: Pull x64
483+
if: steps.commit.outcome == 'success' && steps.tag.outcome == 'success' && steps.push_x64.outcome != 'success'
484+
run: git -C KhaTools_macos pull --no-rebase
485+
- name: Pull arm64
486+
if: steps.commit.outcome == 'success' && steps.tag.outcome == 'success' && steps.push_arm64.outcome != 'success'
484487
run: git -C KhaTools_macos pull --no-rebase
485488
- name: Push x64 binary again
486-
if: runner.arch == 'X64' && steps.commit.outcome == 'success' && steps.tag.outcome == 'success' && steps.push1.outcome != 'success'
489+
if: runner.arch == 'X64' && steps.commit.outcome == 'success' && steps.tag.outcome == 'success' && steps.push_x64.outcome != 'success'
487490
continue-on-error: true
488491
run: git -C KhaTools_macos push https://Kode-Robbot:[email protected]/Kode/KhaTools_macos_x64.git main --tags
489492
env:
490493
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
491494
- name: Push arm64 binary again
492-
if: runner.arch == 'ARM64' && steps.commit.outcome == 'success' && steps.tag.outcome == 'success' && steps.push1.outcome != 'success'
495+
if: runner.arch == 'ARM64' && steps.commit.outcome == 'success' && steps.tag.outcome == 'success' && steps.push_arm64.outcome != 'success'
493496
continue-on-error: true
494497
run: git -C KhaTools_macos push https://Kode-Robbot:[email protected]/Kode/KhaTools_macos_arm64.git main --tags
495498
env:

extra/github-actions/build-mac.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,30 +79,33 @@
7979
if: steps.commit.outcome == 'success'
8080
run: git -C KhaTools_macos tag haxe_$GITHUB_SHA
8181
- name: Push x64 binary
82-
id: push1
82+
id: push_x64
8383
if: runner.arch == 'X64' && steps.commit.outcome == 'success' && steps.tag.outcome == 'success'
8484
continue-on-error: true
8585
run: git -C KhaTools_macos push https://Kode-Robbot:[email protected]/Kode/KhaTools_macos_x64.git main --tags
8686
env:
8787
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
8888
- name: Push arm64 binary
89-
id: push1
89+
id: push_arm64
9090
if: runner.arch == 'ARM64' && steps.commit.outcome == 'success' && steps.tag.outcome == 'success'
9191
continue-on-error: true
9292
run: git -C KhaTools_macos push https://Kode-Robbot:[email protected]/Kode/KhaTools_macos_arm64.git main --tags
9393
env:
9494
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
95-
- name: Pull
96-
if: steps.commit.outcome == 'success' && steps.tag.outcome == 'success' && steps.push1.outcome != 'success'
95+
- name: Pull x64
96+
if: steps.commit.outcome == 'success' && steps.tag.outcome == 'success' && steps.push_x64.outcome != 'success'
97+
run: git -C KhaTools_macos pull --no-rebase
98+
- name: Pull arm64
99+
if: steps.commit.outcome == 'success' && steps.tag.outcome == 'success' && steps.push_arm64.outcome != 'success'
97100
run: git -C KhaTools_macos pull --no-rebase
98101
- name: Push x64 binary again
99-
if: runner.arch == 'X64' && steps.commit.outcome == 'success' && steps.tag.outcome == 'success' && steps.push1.outcome != 'success'
102+
if: runner.arch == 'X64' && steps.commit.outcome == 'success' && steps.tag.outcome == 'success' && steps.push_x64.outcome != 'success'
100103
continue-on-error: true
101104
run: git -C KhaTools_macos push https://Kode-Robbot:[email protected]/Kode/KhaTools_macos_x64.git main --tags
102105
env:
103106
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
104107
- name: Push arm64 binary again
105-
if: runner.arch == 'ARM64' && steps.commit.outcome == 'success' && steps.tag.outcome == 'success' && steps.push1.outcome != 'success'
108+
if: runner.arch == 'ARM64' && steps.commit.outcome == 'success' && steps.tag.outcome == 'success' && steps.push_arm64.outcome != 'success'
106109
continue-on-error: true
107110
run: git -C KhaTools_macos push https://Kode-Robbot:[email protected]/Kode/KhaTools_macos_arm64.git main --tags
108111
env:

0 commit comments

Comments
 (0)