actions
actions copied to clipboard
Glob patterns not working even though files exist, "Error: * doesn't match any files"
Hello, as with #270 and #236 I've been using this action for to create automatic releases for a project I am working on. The problem is that out of the blue the glob patterns have stopped working at random. I have tried trying to find the exact files I want and just FUCK IT and decided to try uploading all files in the working directory. At least then something would be uploaded, but I can't even tell it to get all files or a specific file. It always refuses to find the files I am looking for. Below is my current job.
prerelease:
needs: build
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' }}
# This shows exactly that the files I need are downloaded properly
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
- run: |
ls *
ls **/*.zip
ls **/*.tar.gz
- name: Update GitHub prerelease
if: ${{ github.ref == 'refs/heads/master' }}
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
prerelease: true
title: "Latest Build"
files: |
*
Is there something REALLY stupid I'm missing or is this an on-going issue. It refuses to just package up the directory as is. I can worry about making it upload what I actually want later. Any ideas. Log: 1_prerelease.txt
same issue
same issue! My files selection:
files: |
main.go
error output: main.go doesn't match any files
same issue!
I am experiencing the same issue here ! How can we include all artefacts that have been uploaded as part of the workflow ?
Ditto
same issue?
Version v1.2.1
Note: I've been able to solve issues on my side. Replacing ~
with explicit path /home/runner
, i.e.:
Before:
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
~/path/to/zip/file.zip
After:
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
/home/runner/path/to/zip/file.zip
Hope this helps someone!