Skip to content

hlin-neo4j testing ssh #3

hlin-neo4j testing ssh

hlin-neo4j testing ssh #3

name: GitHub Actions Demo - ssh test
run-name: ${{ github.actor }} testing ssh
on: [push]
jobs:
job_id:
runs-on: ubuntu-latest
steps:
- uses: 'actions/checkout@v4'
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.gcp_credentials }}'
- id: 'compute-ssh'
uses: 'google-github-actions/ssh-compute@v1'
with:
instance_name: 'hltest-qau-ui'
zone: 'us-east1-b'
ssh_private_key: '${{ secrets.GCP_SSH_PRIVATE_KEY }}'
command: 'ls -al'
# Example of using the output
- id: 'test'
run: |-
echo '${{ steps.compute-ssh.outputs.stdout }}'
echo '${{ steps.compute-ssh.outputs.stderr }}'