Skip to content

try new user

try new user #5

name: update-gql-v1beta2-data
on:
workflow_dispatch:
push:
branches:
- master
jobs:
update-gql-v1beta2-data:
runs-on: ubuntu-22.04
concurrency:
group: serial
cancel-in-progress: false
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: 'actions/checkout@v4'
- uses: 'google-github-actions/auth@v2'
with:
project_id: 'pokeapi-test-b6137'
workload_identity_provider: 'projects/854118331945/locations/global/workloadIdentityPools/github-action-pool/providers/github'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
with:
version: '>= 390.0.0'
- name: 'Update data'
uses: 'google-github-actions/ssh-compute@v1'
with:
instance_name: 'graphql1'
zone: 'us-east1-b'
ssh_private_key: '${{ secrets.GCP_STAGING_GRAPHQL1_VM_SSH_PRIVATE_KEY }}'
user: ga1
command: sudo -i sh -c 'cd pokeapi && make update-graphql-data-prod'
- name: 'Display update output'
run: |-
echo '${{ steps.compute-ssh.outputs.stdout }}'
echo '${{ steps.compute-ssh.outputs.stderr }}'