Skip to content

Commit 07fbc2b

Browse files
committed
Workaroud github policy :(
1 parent 569f1f4 commit 07fbc2b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/checkbox-daily-cross-builds.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Checkbox Snap daily cross-builds
33
on:
44
workflow_dispatch:
55
workflow_call:
6+
push:
7+
branches:
8+
- build_new_action
9+
610

711
jobs:
812
snap-runtime:
@@ -17,7 +21,7 @@ jobs:
1721
arch: amd64
1822
- release: 16
1923
arch: arm64
20-
runs-on: ${{ matrix.release == 16 && "ubuntu-20.04" || "ubuntu-latest" }}
24+
runs-on: ${{ matrix.release == 16 && 'ubuntu-20.04' || 'ubuntu-latest' }}
2125
timeout-minutes: 1200 #20h, this will timeout sooner due to inner timeouts
2226
name: Runtime ${{ matrix.release }}-${{ matrix.arch }}
2327
steps:
@@ -62,7 +66,7 @@ jobs:
6266
path: checkbox-core-snap/series${{ matrix.release }}/*.snap
6367

6468
- name: Publish track
65-
if: ${{ github.event_name != 'workflow_dispatch' }}
69+
if: ${{ github.event_name == 'workflow_call' }}
6670
uses: canonical/action-publish@v1
6771
env:
6872
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT7_CREDS }}
@@ -95,7 +99,7 @@ jobs:
9599
arch: amd64
96100
- release: 24
97101
arch: arm64
98-
runs-on: ${{ matrix.release == 16 && "ubuntu-20.04" || "ubuntu-latest" }}
102+
runs-on: ${{ matrix.release == 16 && 'ubuntu-20.04' || 'ubuntu-latest' }}
99103
timeout-minutes: 1200 #20h, this will timeout sooner due to inner timeouts
100104
name: Frontend ${{ matrix.type }}${{ matrix.release }} - ${{ matrix.arch }}
101105
steps:
@@ -140,7 +144,7 @@ jobs:
140144
path: ${{ steps.snapcraft.outputs.snap }}
141145

142146
- name: Publish track
143-
if: ${{ github.event_name != 'workflow_dispatch' }}
147+
if: ${{ github.event_name == 'workflow_call' }}
144148
uses: canonical/action-publish@v1
145149
env:
146150
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT7_CREDS }}

0 commit comments

Comments
 (0)