Skip to content

Commit

Permalink
Merge pull request #752 from agrare/run_aws_extract_instance_types_we…
Browse files Browse the repository at this point in the history
…ekly

Add github action to update instance-types
  • Loading branch information
Fryguy authored Apr 29, 2022
2 parents 3c87b29 + 7d18ed0 commit abd250c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/instance_types.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update Instance Types

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'

jobs:
update-instance-types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up system
run: bin/before_install
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Run instance_types rake task
run: bundle exec rake aws:extract:instance_types
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
add-paths: db/fixtures/aws_instance_types.yml
commit-message: Update AWS instance_types
branch: update_aws_instance_types
title: Update AWS instance_types
body: Update the saved list of AWS instance_types from https://instances.vantage.sh/instances.json
token: ${{ secrets.DEPLOY_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/pkg/
/spec/reports/
/tmp/
/vendor/bundle

.rubocop-*
/bundler.d/*
Expand Down

0 comments on commit abd250c

Please sign in to comment.