diff --git a/.github/updatecli/updatecli_amis.tpl b/.github/updatecli/updatecli_amis.tpl index 9c88ed008..85a56d36b 100644 --- a/.github/updatecli/updatecli_amis.tpl +++ b/.github/updatecli/updatecli_amis.tpl @@ -6,6 +6,7 @@ sources: kind: aws/ami spec: region: {{ requiredEnv "AWS_REGION" }} + sortby: creationdateasc filters: - name: "owner-id" values: '{{ $ami.owner_id | default "*" }}' diff --git a/.github/workflows/bumpVersions.yml b/.github/workflows/bumpVersions.yml index bd42a7e74..f16d6678b 100644 --- a/.github/workflows/bumpVersions.yml +++ b/.github/workflows/bumpVersions.yml @@ -6,6 +6,8 @@ on: schedule: - cron: '52 6 * * 1' push: + branches-ignore: + - 'master' paths: - .github/workflows/bumpVersions.yml - .github/updatecli/** @@ -80,7 +82,7 @@ jobs: UPDATECLI_GITHUB_USERNAME: ${{ vars.BOT_GITHUB_USERNAME }} - name: Updatecli apply for AMIs - if: inputs.update-type == 'ami' || github.event_name == 'push' || github.event_name == 'schedule' + if: inputs.update-type == 'ami' || github.event_name == 'schedule' shell: bash run: | updatecli apply --config .github/updatecli/updatecli_amis.tpl \