Skip to content

Commit 3caf17c

Browse files
authored
OPSEXP-3176 Fine tuning AMI workflow triggers (#1138)
1 parent 6682a9d commit 3caf17c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/updatecli/updatecli_amis.tpl

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ sources:
66
kind: aws/ami
77
spec:
88
region: {{ requiredEnv "AWS_REGION" }}
9+
sortby: creationdateasc
910
filters:
1011
- name: "owner-id"
1112
values: '{{ $ami.owner_id | default "*" }}'

.github/workflows/bumpVersions.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
schedule:
77
- cron: '52 6 * * 1'
88
push:
9+
branches-ignore:
10+
- 'master'
911
paths:
1012
- .github/workflows/bumpVersions.yml
1113
- .github/updatecli/**
@@ -80,7 +82,7 @@ jobs:
8082
UPDATECLI_GITHUB_USERNAME: ${{ vars.BOT_GITHUB_USERNAME }}
8183

8284
- name: Updatecli apply for AMIs
83-
if: inputs.update-type == 'ami' || github.event_name == 'push' || github.event_name == 'schedule'
85+
if: inputs.update-type == 'ami' || github.event_name == 'schedule'
8486
shell: bash
8587
run: |
8688
updatecli apply --config .github/updatecli/updatecli_amis.tpl \

0 commit comments

Comments
 (0)