health-metrics-release.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. name: health-metrics-release
  2. on:
  3. release:
  4. types: [published]
  5. env:
  6. gpg_passphrase: ${{ secrets.GHASecretsGPGPassphrase1 }}
  7. concurrency:
  8. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  9. cancel-in-progress: true
  10. jobs:
  11. release-diffing:
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Checkout code
  15. uses: actions/checkout@v2
  16. - name: Set up Google Cloud SDK
  17. uses: google-github-actions/setup-gcloud@master
  18. - name: Authenticate Google Cloud SDK
  19. run: |
  20. scripts/decrypt_gha_secret.sh \
  21. scripts/gha-encrypted/metrics_service_access.json.gpg \
  22. service_account.json \
  23. "${{ env.gpg_passphrase }}"
  24. gcloud auth activate-service-account --key-file service_account.json
  25. - name: Produce health metric diff reports
  26. uses: FirebaseExtended/github-actions/health-metrics/release-diffing@master
  27. with:
  28. repo: ${{ github.repository }}
  29. ref: ${{ github.ref }}
  30. commit: ${{ github.sha }}
  31. releaseId: ${{ github.event.release.id }}