Admin: Use different GH action to create PRs (#6047)
This commit is contained in:
parent
8d09d797e6
commit
c7478495a2
@ -38,13 +38,12 @@ jobs:
|
||||
role-to-assume: arn:aws:iam::486285699788:role/GithubActionsRole
|
||||
|
||||
- name: Pull EC2 instance types from AWS
|
||||
uses: technote-space/create-pr-action@v2
|
||||
run: |
|
||||
pip install boto3
|
||||
scripts/ec2_get_instance_type_offerings.py
|
||||
- name: Create PR
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
EXECUTE_COMMANDS: |
|
||||
pip install boto3
|
||||
scripts/ec2_get_instance_type_offerings.py
|
||||
COMMIT_MESSAGE: 'chore: update EC2 Instance Offerings'
|
||||
COMMIT_NAME: 'Moto Admin'
|
||||
COMMIT_EMAIL: 'admin@getmoto.org'
|
||||
PR_BRANCH_NAME: 'chore-update-ec2-offerings-${{ github.run_number }}'
|
||||
PR_TITLE: 'chore: update EC2 Instance Offerings'
|
||||
branch: 'chore-update-ec2-offerings-${{ github.run_number }}'
|
||||
title: 'chore: update EC2 Instance Offerings'
|
||||
commit-message: 'chore: update EC2 Instance Offerings'
|
||||
|
@ -37,13 +37,12 @@ jobs:
|
||||
role-to-assume: arn:aws:iam::486285699788:role/GithubActionsRole
|
||||
|
||||
- name: Pull EC2 instance types from AWS
|
||||
uses: technote-space/create-pr-action@v2
|
||||
run: |
|
||||
pip install boto3
|
||||
scripts/get_instance_info.py
|
||||
- name: Create PR
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
EXECUTE_COMMANDS: |
|
||||
pip install boto3
|
||||
scripts/get_instance_info.py
|
||||
COMMIT_MESSAGE: 'chore: update EC2 Instance Types'
|
||||
COMMIT_NAME: 'Moto Admin'
|
||||
COMMIT_EMAIL: 'admin@getmoto.org'
|
||||
PR_BRANCH_NAME: 'chore-update-ec2-types-${{ github.run_number }}'
|
||||
PR_TITLE: 'chore: update EC2 Instance Types'
|
||||
branch: 'chore-update-ec2-types-${{ github.run_number }}'
|
||||
title: 'chore: update EC2 Instance Types'
|
||||
commit-message: 'chore: update EC2 Instance Types'
|
||||
|
@ -37,14 +37,13 @@ jobs:
|
||||
role-to-assume: arn:aws:iam::486285699788:role/GithubActionsRole
|
||||
|
||||
- name: Pull SSM default AMIs from AWS
|
||||
uses: technote-space/create-pr-action@v2
|
||||
run: |
|
||||
pip install boto3
|
||||
pip install moto[all]
|
||||
python scripts/ssm_get_default_amis.py
|
||||
- name: Create PR
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
EXECUTE_COMMANDS: |
|
||||
pip install boto3
|
||||
pip install moto[all]
|
||||
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-ssm-amis-${{ github.run_number }}'
|
||||
PR_TITLE: "chore: update SSM Instance AMI's"
|
||||
branch: 'chore-update-ssm-amis-${{ github.run_number }}'
|
||||
title: "chore: update SSM Instance AMI's"
|
||||
commit-message: "chore: update SSM default AMI's"
|
||||
|
@ -38,14 +38,13 @@ jobs:
|
||||
role-to-assume: arn:aws:iam::486285699788:role/GithubActionsRole
|
||||
|
||||
- name: Pull SSM default Parameters from AWS
|
||||
uses: technote-space/create-pr-action@v2
|
||||
run: |
|
||||
pip install boto3
|
||||
pip install moto[all]
|
||||
python scripts/ssm_get_default_params.py
|
||||
- name: Create PR
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
EXECUTE_COMMANDS: |
|
||||
pip install boto3
|
||||
pip install moto[all]
|
||||
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-ssm-params-${{ github.run_number }}'
|
||||
PR_TITLE: "chore: update SSM Instance parameters"
|
||||
branch: 'chore-update-ssm-params-${{ github.run_number }}'
|
||||
title: "chore: update SSM Instance parameters"
|
||||
commit-message: "chore: update SSM default parameters"
|
||||
|
Loading…
Reference in New Issue
Block a user