Admin: Ensure Automatic data update scripts use a unique branch (#5947)

This commit is contained in:
Bert Blommers 2023-02-19 13:21:34 -01:00 committed by GitHub
parent efb13a17a8
commit 046d765100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 5 deletions

View File

@ -47,5 +47,5 @@ jobs:
COMMIT_MESSAGE: 'chore: update EC2 Instance Offerings'
COMMIT_NAME: 'Moto Admin'
COMMIT_EMAIL: 'admin@getmoto.org'
PR_BRANCH_NAME: 'chore-update-${PR_ID}'
PR_BRANCH_NAME: 'chore-update-ec2-offerings-${PR_ID}'
PR_TITLE: 'chore: update EC2 Instance Offerings'

View File

@ -46,5 +46,5 @@ jobs:
COMMIT_MESSAGE: 'chore: update EC2 Instance Types'
COMMIT_NAME: 'Moto Admin'
COMMIT_EMAIL: 'admin@getmoto.org'
PR_BRANCH_NAME: 'chore-update-${PR_ID}'
PR_BRANCH_NAME: 'chore-update-ec2-types-${PR_ID}'
PR_TITLE: 'chore: update EC2 Instance Types'

View File

@ -43,9 +43,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.PR_ACCESS_TOKEN }}
EXECUTE_COMMANDS: |
pip install boto3
pip install moto
python scripts/ssm_get_default_amis.py
COMMIT_MESSAGE: "chore: update SSM default AMI's"
COMMIT_NAME: 'Moto Admin'
COMMIT_EMAIL: 'admin@getmoto.org'
PR_BRANCH_NAME: 'chore-update-${PR_ID}'
PR_BRANCH_NAME: 'chore-update-ssm-amis-${PR_ID}'
PR_TITLE: "chore: update SSM Instance AMI's"

View File

@ -43,9 +43,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.PR_ACCESS_TOKEN }}
EXECUTE_COMMANDS: |
pip install boto3
pip install moto
python scripts/ssm_get_default_params.py
COMMIT_MESSAGE: "chore: update SSM default parameters"
COMMIT_NAME: 'Moto Admin'
COMMIT_EMAIL: 'admin@getmoto.org'
PR_BRANCH_NAME: 'chore-update-${PR_ID}'
PR_BRANCH_NAME: 'chore-update-ssm-params-${PR_ID}'
PR_TITLE: "chore: update SSM Instance parameters"

View File

@ -2,7 +2,6 @@ import boto3
import json
import os
import subprocess
import sure # noqa # pylint: disable=unused-import
import time
from moto.ssm.utils import convert_to_tree