-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.57 KB
/
dp_update_api_names.yml
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
37
38
39
40
41
42
43
44
45
46
name: Update api names list
on:
workflow_dispatch:
jobs:
Update:
permissions:
contents: 'read'
id-token: 'write'
pull-requests: 'write'
defaults:
run:
shell: bash
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: "projects/963616447866/locations/global/workloadIdentityPools/gh-deploy-dev-portal-rd/providers/gh-dev-portal-provider-rd"
service_account: "deploy-cloudrun-cicd@premise-developer-portal-rd.iam.gserviceaccount.com"
- name: Set up Cloud SDK
uses: google-github-actions/[email protected]
with:
version: '363.0.0'
- name: Install gcloud beta
run: gcloud components install beta
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: "projects/963616447866/locations/global/workloadIdentityPools/gh-deploy-dev-portal-rd/providers/gh-dev-portal-provider-rd"
service_account: "deploy-cloudrun-cicd@premise-developer-portal-rd.iam.gserviceaccount.com"
- name: Listing auths
run: gcloud auth list --filter=status:ACTIVE --format="value(account)"
# - name: Python setup
# uses: actions/setup-python@v4
# - name: Install google api
# run: pip install google-api-python-client
# - name: Runing python list
# run: python test_api_list.py
- name: List services
run: gcloud beta services list