Skip to content

No such file or directory #194

Open
Open
@Madoshakalaka

Description

@Madoshakalaka

This was running fine for us:

- uses: actions/download-artifact@v4
  with:
    name: new-build
# this downloads an execubible file `backend` to the current directory 

- name: Upload Artefact
  uses: nicklasfrahm/scp-action@main
  with:
    direction: upload
    fingerprint: ${{ env.FINGERPRINT }}
    host: ${{ env.HOST }}
    username: our_user
    key: ${{ secrets.SSH_PRIVATE_KEY }}
    source: backend
    target: /opt/our_app/backend

but we recently have to download the artifact to a different place because of a name clash with a directory, the new steps:

- uses: actions/download-artifact@v4
with:
  name: new-build
  path: /tmp

- run: ls /tmp
# this shows clearly the file is downloaded to `/tmp/backend`

- name: Upload Artefact
uses: nicklasfrahm/scp-action@main
with:
  direction: upload
  fingerprint: ${{ env.FINGERPRINT }}
  host: ${{ env.HOST }}
  username: our_user
  key: ${{ secrets.SSH_PRIVATE_KEY }}
  source: /tmp/backend
  target: /opt/our_app/backend

And now somehow scp-action fails with "No such file /tmp/backend"??

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