Skip to content

Commit

Permalink
Update github-actions-demo.yml
Browse files Browse the repository at this point in the history
ssh
  • Loading branch information
hlin-neo4j authored Jul 17, 2024
1 parent bb0db40 commit 214fdd2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,17 @@ jobs:
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 }}'

0 comments on commit 214fdd2

Please sign in to comment.