Refresh Price #5
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: Refresh Price | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
update_ec2_price: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo gem install httpx | |
- name: Download price | |
run: | | |
ruby data/download.rb | |
ruby data/download_rds.rb | |
ruby data/download_es.rb | |
ruby data/download_elasticache.rb | |
- name: Add new price data | |
run: | | |
git config --global user.name 'github-action' | |
git config --global user.email 'github-action@users.noreply.github.com' | |
git commit -am "re-fetch data" | |
git push |