Skip to content

Commit bfd8c04

Browse files
committed
Add temporary push trigger for testing AMI prebuild
Signed-off-by: Claude <[email protected]>
1 parent a0d6914 commit bfd8c04

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ami-prebuild.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: AMI Prebuild
33
# Schedule to run every 15 days to keep runner agent up to date
44
# GitHub stops routing jobs to runners with agents older than 30 days
55
on:
6+
# TODO: Remove push trigger after testing
7+
push:
8+
branches: [ji/ami-prebuild]
9+
paths:
10+
- ".github/workflows/ami-prebuild.yml"
11+
- ".github/actions/build-ami/**"
612
schedule:
713
# Run at 00:00 UTC on the 1st and 16th of each month (~15 days apart)
814
- cron: "0 0 1,16 * *"
@@ -36,7 +42,7 @@ env:
3642
jobs:
3743
build-x64:
3844
name: "Build AMI (x64)"
39-
if: ${{ github.event.inputs.arch == '' || github.event.inputs.arch == 'x64' }}
45+
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.arch == '' || github.event.inputs.arch == 'x64' }}
4046
runs-on:
4147
- runs-on=${{ github.run_id }}
4248
- family=m7i+m7i-flex+m7a
@@ -73,7 +79,7 @@ jobs:
7379
7480
build-arm64:
7581
name: "Build AMI (arm64)"
76-
if: ${{ github.event.inputs.arch == '' || github.event.inputs.arch == 'arm64' }}
82+
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.arch == '' || github.event.inputs.arch == 'arm64' }}
7783
runs-on:
7884
- runs-on=${{ github.run_id }}
7985
- family=m7g

0 commit comments

Comments
 (0)