Skip to content

Commit

Permalink
Merge pull request #167 from catalyst-cooperative/debug-daily-metrics
Browse files Browse the repository at this point in the history
Debug daily metrics GHA
  • Loading branch information
e-belfer authored Sep 17, 2024
2 parents dd52f04 + 73baa9d commit 3074ae0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/save_daily_metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- cron: "0 20 * * *"

jobs:
build:
save-daily-metrics:
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -22,7 +22,7 @@ jobs:
with:
environment-file: environment.yml
cache-environment: true
ondarc: |
condarc: |
channels:
- conda-forge
- defaults
Expand All @@ -41,9 +41,7 @@ jobs:
continue-on-error: true
uses: "google-github-actions/auth@v2"
with:
workload_identity_provider: "projects/345950277072/locations/global/workloadIdentityPools/gh-actions-pool/providers/gh-actions-provider"
service_account: "pudl-usage-metrics-etl@catalyst-cooperative-pudl.iam.gserviceaccount.com"
create_credentials_file: true
credentials_json: "${{ secrets.GCP_USAGE_METRICS_ARCHIVER_KEY }}"

- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v2"
Expand All @@ -53,7 +51,7 @@ jobs:
- shell: bash -l {0}
name: Save Github Metrics
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
API_TOKEN_GITHUB: ${{ secrets.USAGE_STATS_ACCESS_TOKEN }}
run: |
python src/usage_metrics/scripts/save_github_metrics.py
Expand Down

0 comments on commit 3074ae0

Please sign in to comment.