Skip to content

why I get an error :"Process exited with status 1" #373

Description

@samxxxxx
      - name: Clean target directory on server
        uses: appleboy/ssh-action@master
        with:
          host: ${{ secrets.ALIYUN_HOST }}
          username: ${{ secrets.ALIYUN_USERNAME }}
          password: ${{ secrets.ALIYUN_PASSWORD }} 
          port: ${{ secrets.ALIYUN_SSH_PORT }} 
          script: |
            Remove-Item -Path "C:\www\app\*" -Recurse -Force
            echo "done !!!!!!!!!!!!!!!!!!!!!!!"
          debug: true

the result is:

======CMD======
Remove-Item -Path "C:\www\app*" -Recurse -Force
echo "done !!!!!!!!!!!!!!!!!!!!!!!"

======END======
'Remove-Item' �����ڲ����ⲿ���Ҳ���ǿ����еij���
2025/03/17 01:49:28 Process exited with status 1
�����������
Error: Process completed with exit code 1.

What is the garbled text here, and how can I check the actual error message inside? What needs to be configured?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions