Comments (7)
Looks like a bug in the downloader when it tries to resolve various assets based on the user input.
I just reproduced it here:
The downloader always look for an asset by its name. That shouldn't be the case if you just want to download a zipBall or tarBall only.
I'll fix it soon.
from release-downloader.
A fix for this is merged now, you may test it using the latest commit hash on main branch as follows.
- uses: robinraju/release-downloader@cb096d8fa1fcb0e897f30b1c571f07e2c8e12479
with:
repository: "owner/repo"
latest: true
tarBall: true
zipBall: true
from release-downloader.
This error happens when you specify a file name and it couldn't find that asset.
The flags tarBall: true
and zipBall:true
will download both of the following files, which are available in all releases.
Source code (zip)
Source code (tar.gz)
The fileName
input is used when you have any additional files apart from these two,
Otherwise you can remove the fileName: "*.zip"
part.
Let me know if you are trying to download a different .zip
file available in the release and see this error.
from release-downloader.
Thanks much for your respond Robinraju.
I do not want to download a different .zip file.
I removed the fileName: "*.zip" from my file but i am getting the same error again.
Here is my workflow.
on:
push:
branches:
- xyz
workflow_dispatch:
inputs:
tag:
description: 'Specify the tag of the release to download, or leave empty for the latest release'
required: false
jobs:
download-release:
name: Dummy Release with tag input
runs-on: ubuntu-latest
steps:
- name: Dummy Release with tag input
uses: robinraju/[email protected]
with:
tag: ${{ xyz || 'latest' }} # If tag is not provided, default to 'latest'
token: ${{ xyz }}
latest: true # Always set to true to download the latest release if tag is not provided or is invalid
tarBall: true
zipBall: true
repository: xyz
here is the error.
from release-downloader.
Same error here
- name: Download release
if: env.DEPLOY_TYPE == 'release'
uses: robinraju/release-downloader@c39a3b234af58f0cf85888573d361fb6fa281534
with:
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ inputs.branchOrRelease }}
Have you found any solution @Vaishno23 ?
from release-downloader.
@mcfdez Not yet, Still waiting for @robinraju to respond.
from release-downloader.
Hi @robinraju
I confirm that works like a charm. Thx!
from release-downloader.
Related Issues (20)
- out-file-path and fileName seems to be mutually exclusive HOT 2
- Ability to specify release ID instead of tag HOT 5
- Can this action support for github app token? HOT 2
- Download prereleases? HOT 5
- Failing to run latest when fileName is not `release.tar.gz` HOT 5
- Throw exception if release is found but no files are included
- Add support to extract release archives HOT 2
- [Feature request] add download filename(s) to outputs variable HOT 2
- Error: [getReleaseByTag] Unexpected response: 401 HOT 2
- Output version name HOT 1
- Doesnt work with GitHub enterprise server url
- "extract" from zip archive does not preserve permissions on Linux HOT 1
- Downloaded file contents are incorrect starting with version 1.9 HOT 5
- 1.9 version seems to have broken the extract functionality HOT 6
- Error: No assets found in release HOT 3
- Downloading the 2nd, 3rd, nth latest release?
- Extract with skipping file names validation
- extract .xz files
- Can remove original files after extracting archives?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from release-downloader.