File tree Expand file tree Collapse file tree 2 files changed +39
-2
lines changed
Expand file tree Collapse file tree 2 files changed +39
-2
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ jobs:
3131 --source-disk=graphql5 \
3232 --source-disk-zone=us-east1-b \
3333 --storage-location=us-east1
34- - name : ' Update update-graphql- data-prod '
34+ - name : ' Update data'
3535 uses : ' google-github-actions/ssh-compute@v1'
3636 with :
3737 instance_name : ' graphql5'
3838 zone : ' us-east1-b'
3939 ssh_private_key : ' ${{ secrets.GCP_SSH_PRIVATE_KEY }}'
4040 user : ga
41- command : sudo -i sh -c 'cd pokeapi && make update-graphql-data-prod'
41+ command : sudo -i sh -c 'cd pokeapi && make update-graphql-v1beta- data-prod'
4242 - name : ' Display update output'
4343 run : |-
4444 echo '${{ steps.compute-ssh.outputs.stdout }}'
Original file line number Diff line number Diff line change 1+ name : update-gql-data
2+ on :
3+ workflow_dispatch :
4+ push :
5+ branches :
6+ - master
7+ jobs :
8+ update-gql-data :
9+ runs-on : ubuntu-22.04
10+ concurrency :
11+ group : serial
12+ cancel-in-progress : false
13+ permissions :
14+ contents : ' read'
15+ id-token : ' write'
16+ steps :
17+ - uses : ' actions/checkout@v4'
18+ - uses : ' google-github-actions/auth@v2'
19+ with :
20+ project_id : ' pokeapi-215911'
21+ workload_identity_provider : ' projects/854118331945/locations/global/workloadIdentityPools/github-action-pool/providers/github'
22+ - name : ' Set up Cloud SDK'
23+ uses : ' google-github-actions/setup-gcloud@v2'
24+ with :
25+ version : ' >= 390.0.0'
26+ - name : ' Update data'
27+ uses : ' google-github-actions/ssh-compute@v1'
28+ with :
29+ instance_name : ' graphql1'
30+ zone : ' us-east1-b'
31+ ssh_private_key : ' ${{ secrets.GCP_STAGING_GRAPHQL1_VM_SSH_PRIVATE_KEY }}'
32+ user : ga
33+ command : sudo -i sh -c 'cd pokeapi && make update-graphql-data-prod'
34+ - name : ' Display update output'
35+ run : |-
36+ echo '${{ steps.compute-ssh.outputs.stdout }}'
37+ echo '${{ steps.compute-ssh.outputs.stderr }}'
You can’t perform that action at this time.
0 commit comments