Update Instance Types #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Instance Types | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
update-instance-types: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up system | |
run: bin/before_install | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.0" | |
bundler-cache: true | |
- name: Update regions | |
run: bundle exec rake aws:extract:regions | |
- name: Update ec2 instance types | |
run: bundle exec rake aws:extract:instance_types | |
- name: Update rds db instance types | |
run: bundle exec rake aws:extract:database_types | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
add-paths: | | |
config/regions.yml | |
db/fixtures/aws_instance_types.yml | |
db/fixtures/aws_database_types.yml | |
commit-message: Update AWS instance_types | |
branch: update_aws_instance_types | |
author: ManageIQ Bot <[email protected]> | |
committer: ManageIQ Bot <[email protected]> | |
delete-branch: true | |
labels: enhancement | |
push-to-fork: miq-bot/manageiq-providers-amazon | |
title: Update AWS instance_types | |
body: Update the saved list of AWS instance_types from https://instances.vantage.sh/instances.json | |
token: ${{ secrets.PR_TOKEN }} |