Create cost report #19
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: Create cost report | |
on: | |
workflow_dispatch: | |
jobs: | |
create-cost-report: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Authenticate to GCloud | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.GCP_BIGQUERY_INFRA_LOGGER_SA }} | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v2' | |
- name: Install requirements | |
run: | | |
pip install -r ./scripts/cost-estimation/requirements.txt | |
- name: Calculate costs | |
run: | | |
./scripts/cost-estimation/calculate-costs.sh >> "${GITHUB_STEP_SUMMARY}" |