ssh-action
ssh-action copied to clipboard
No content log to handle
How to get content steps.id.outputs from log after scripts running ?
I have the same question. Now, I only can know that it runs sucessful,but I can't get the running log.
How can I get the CMD log in the github action(Like CMD "git pull", it's log)?
my workflow yml config:
name: deploy
on:
workflow_dispatch:
jobs:
connect-and-run-command:
runs-on: ubuntu-latest
steps:
- name: Connect to Windows Server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST_PORD }}
port: ${{ secrets.SERVER_PORT_PROD }}
username: ${{ secrets.SERVER_USERNAME_PROD }}
password: ${{ secrets.SERVER_PASSWORD_PROD }}
script: |
:: RUN CODE IN WINDOWS
cd C:\Users\Administrator\spider-nest
dir
:: PULL CODE
git pull
echo ---------[END] git pull---------
:: INSTALL DEPENDENCIES
npm install --production=false
echo ---------[END] npm install --production=false---------
:: BUILD CODE
npm run build
echo ---------[END] npm run build---------
:: RELOAD PM2
pm2 reload main
echo ---------[END] pm2 reload main---------