marvinpinto/actions

action-automatic-releases always raise a "doesn't match any files" error

Danixu opened this issue · 4 comments

Hello,

Some time ago I have started to use this action to automatically create releases for my program. On my first tests was working fine, but now without changing anything beyond the makefile (the releases folder and the zip files are the same).

I have the following steps on my github build script:

     - name: Generate release
        run: |
          cd release
          zip -r ecm_${{ env.RELEASE_VERSION }}_linux.zip linux/*
          zip -r ecm_${{ env.RELEASE_VERSION }}_win64.zip win64/*

      - uses: "marvinpinto/action-automatic-releases@latest"
        with:
          repo_token: "${{ secrets.GITHUB_TOKEN }}"
          prerelease: false
          files: |
            'release/*.zip'

I am fully sure that the zip files are created because I have added some ls commands and I am able to see it, and also I can see in the log how files are compressed, but the automatic release always gives an error 'release/*.zip' doesn't match any files.

I have even tried the full path with the full filename instead to use the wildcard, and I got the same error.

What is the correct way to use it?

Thanks!

@Danixu i managed to get it working by adding ./ in front of the file i want to export in your case it should be ./release/*.zip

Nice!, but mine still failing...

error

I'll try to create the zip files in root folder to see. Maybe is the folder name or something similar.

Best regards.

EDIT: No changes... same error generating the release files to workspace root folder.

Finally I have found the problem... were just the quotation marks, I have changed "release/*.zip" to just release/*.zip and now is working fine.

Hello !
I don't want to open the same issue as I have the same problem. I don't use any quotation mark, and I already tryed to use ./*.css and it doesn't seem to work.
Anyone can help me? I also tryed to add all files name manually, and I have the same error...