File tree Expand file tree Collapse file tree 2 files changed +6
-21
lines changed Expand file tree Collapse file tree 2 files changed +6
-21
lines changed Original file line number Diff line number Diff line change 1
1
name : update-gql-v1beta-data
2
2
on :
3
3
workflow_dispatch :
4
- push :
5
- branches :
6
- - master
4
+ # push:
5
+ # branches:
6
+ # - master
7
7
jobs :
8
8
update-gql-v1beta-data :
9
9
runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change 15
15
id-token : ' write'
16
16
steps :
17
17
- uses : ' actions/checkout@v4'
18
- - uses : ' google-github-actions/auth@v2'
19
- with :
20
- project_id : ' pokeapi-test-b6137'
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'
18
+
26
19
- 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 : ga2
33
- command : sudo -i sh -c 'cd pokeapi && make update-graphql-data-prod'
34
- - name : ' Display update output'
35
20
run : |-
36
- echo '${{ steps.compute-ssh.outputs.stdout }}'
37
- echo '${{ steps.compute-ssh.outputs.stderr }}'
21
+ echo "$GCP_STAGING_GRAPHQL1_VM_SSH_PRIVATE_KEY" > pk.key
22
+ ssh -i pk.key [email protected] "sudo -i sh -c 'cd pokeapi && make update-graphql-data-prod'"
You can’t perform that action at this time.
0 commit comments