-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using 'regex' to download multiple files renames files #48
Comments
As a workaround, specify |
The issue is that There are 2 options.
@samspencer5991 what do you think? |
I specified the target but still get the files renamed not sure if I'm doing something wrong - name: download latest build
id: get_release
uses: dsaltares/[email protected]
with:
version: "latest"
file: "don-salmon-.*\\.zip"
regex: true
target: "./"
token: "${{ secrets.GITHUB_TOKEN }}"
|
I just hit the same issue - basically, the problem is that the combination of this line: fetch-gh-release-asset/index.ts Line 139 in 5d24fa7
And this line: fetch-gh-release-asset/index.ts Line 155 in 5d24fa7
Results in hilarity when the config is something like: - uses: dsaltares/[email protected]
with:
file: '.+\.(tar\.gz|whl)$'
regex: true @Korkman's workaround of setting |
I'm currently using this to download all available files from the repo in my GH action. The issue is that the downloaded files are then renamed with the passed file name with the original filename appended.
For example, in my repo I have four files, all beginning with 'bridge'. So I can download all of them by passing file: "bridge", but then my files end up looking like: "bridgebridge...."
Is there a way to avoid this and just keep the original file names?
The text was updated successfully, but these errors were encountered: