Giter Club home page Giter Club logo

Comments (7)

robinraju avatar robinraju commented on June 30, 2024 1

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.

robinraju avatar robinraju commented on June 30, 2024 1

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.

robinraju avatar robinraju commented on June 30, 2024

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.

Vaishno23 avatar Vaishno23 commented on June 30, 2024

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.

image

from release-downloader.

mcfdez avatar mcfdez commented on June 30, 2024

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 }}

Captura de pantalla 2024-04-22 144908

Have you found any solution @Vaishno23 ?

from release-downloader.

Vaishno23 avatar Vaishno23 commented on June 30, 2024

@mcfdez Not yet, Still waiting for @robinraju to respond.

from release-downloader.

mcfdez avatar mcfdez commented on June 30, 2024

Hi @robinraju

I confirm that works like a charm. Thx!

from release-downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.