Skip to content

Commit

Permalink
ci: Automatically collect AWS reports daily
Browse files Browse the repository at this point in the history
  • Loading branch information
kichik committed Jan 14, 2022
1 parent 3c3d2cc commit 8abde9f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/collect-aws.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Collect AWS reports

on:
schedule:
- cron: '12 9 * * *'

jobs:
report:
name: Collect AWS reports
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_REPORT_ROLE }}
aws-region: us-east-1

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Run spot instances
run: |
go run scripts/collect-aws.go --instance-types t4g.nano,t3a.nano,t3.nano

0 comments on commit 8abde9f

Please sign in to comment.