actions-file-deployer icon indicating copy to clipboard operation
actions-file-deployer copied to clipboard

Error: Process completed with exit code 126.

Open N0edL opened this issue 1 year ago • 3 comments

Hey i treid setting it up with a privated repo and it wont work could someone help me thanks

error: /home/runner/work/_temp/c028c4fe-33b2-43fe-8608-67fa8e98025a.sh: line 254: .git/FETCH_HEAD: Permission denied Error: Process completed with exit code 126.

workflow: `name: Deploy to remote Server

on: workflow_dispatch: push: branches: - main

jobs: deploy_job: runs-on: ubuntu-latest name: Deploy steps:
- name: 🚚 Get latest code uses: actions/checkout@v4 with: fetch-depth: 0

  - name: 📂 Sync files
    uses: milanmk/actions-file-deployer@master
    with:
      remote-protocol: "sftp"
      remote-host: ${{ secrets.SFTP_SERVER }}
      remote-user: ${{ secrets.SFTP_USERNAME }}
      remote-password: ${{ secrets.SFTP_PASSWORD }}
      remote-port: ${{ secrets.SFTP_PORT }}
      remote-path: ./
      sync: delta
      sync-delta-excludes: |
        .github/**
        .git/**
        README.md`

N0edL avatar Nov 01 '24 20:11 N0edL

Seems like a file permission issue in the runner. Are you running this in a self-hosted runner?

milanmk avatar Nov 07 '24 12:11 milanmk

Seems like a file permission issue in the runner. Are you running this in a self-hosted runner?

I just added your action to a workflow like the examples

N0edL avatar Nov 08 '24 09:11 N0edL

Please share the run logs for this workflow.

milanmk avatar Nov 08 '24 09:11 milanmk