Can't use own action? It keeps saying "An action could not be found at the URI"

Hi, so I made a fork of an existing action https://github.com/hrsetyono/git-sftp-action

I’ve been using that for quite a while, but I need to add SSH support to it. So I slightly modified it and published to marketplace.

But everytime I want to use it, I get this error:

Prepare workflow directory
Prepare all required actions
Download action repository 'actions/checkout@v1'
Download action repository 'hrsetyono/git-sftp-action@v4'
##[error]An action could not be found at the URI 'https://api.github.com/repos/hrsetyono/git-sftp-action/tarball/v4'

My workflow still follows the format that’s working in the original action:

name: Push Updates
on: push
jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: git-ftp push
      uses: hrsetyono/git-sftp-action@v4
      with:
        url: "${{ secrets.DO_HOST }}/home/mysite"
        user: ${{ secrets.DO_USERNAME }}
        key: ${{ secrets.DO_KEY }}

Am I not allowed to use own action? Or it just take long time for the marketplace to refresh?

Hi @hrsetyono,

The error is due to incorrect ref of the action used. The latest release version is ‘4.0.0’ not ‘V4’. Please fix your code as below:

    - name: git-ftp push
      uses: hrsetyono/git-sftp-action@4.0.0
      with:
        url: "${{ secrets.DO_HOST }}/home/mysite"
        user: ${{ secrets.DO_USERNAME }}
        key: ${{ secrets.DO_KEY }}

I confirm it works on my side.

Thanks

Ah I see, I keep seeing someone uses v1 or v2 for their action thinking it was the shorthand for 1.0.0 and 2.0.0

Apparently it was the branch name

Thanks!

Hi @hrsetyono,

To use a public action, you can specific branch, ref, or SHA for the action version, ‘4.0.0’ is the release version/tag(similar as ref). Please check the doc here for more details.

Thanks