ssh-action icon indicating copy to clipboard operation
ssh-action copied to clipboard

No content log to handle

Open didaputraa opened this issue 2 years ago • 1 comments

How to get content steps.id.outputs from log after scripts running ?

didaputraa avatar Mar 10 '23 13:03 didaputraa

I have the same question. Now, I only can know that it runs sucessful,but I can't get the running log. image

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---------

edwin2jiang avatar Jun 06 '23 05:06 edwin2jiang