Skip to content

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

Open
@samxxxxx

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?

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