-
Notifications
You must be signed in to change notification settings - Fork 1.7k
36 lines (31 loc) · 1.07 KB
/
health-metrics-release.yml
File metadata and controls
36 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: health-metrics-release
on:
release:
types: [published]
env:
gpg_passphrase: ${{ secrets.GHASecretsGPGPassphrase1 }}
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
release-diffing:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Google Cloud SDK
uses: google-github-actions/setup-gcloud@master
- name: Authenticate Google Cloud SDK
run: |
scripts/decrypt_gha_secret.sh \
scripts/gha-encrypted/metrics_service_access.json.gpg \
service_account.json \
"${GPG_PASSPHRASE}"
gcloud auth activate-service-account --key-file service_account.json
- name: Produce health metric diff reports
uses: FirebaseExtended/github-actions/health-metrics/release-diffing@master
with:
repo: ${{ github.repository }}
ref: ${{ github.ref }}
commit: ${{ github.sha }}
releaseId: ${{ github.event.release.id }}