Giter VIP home page Giter VIP logo

release-tag-to-upload-url-action's Introduction

Hi there 👋

release-tag-to-upload-url-action's People

Contributors

pdamianik avatar

Stargazers

 avatar  avatar

Forkers

saif-alzarouni

release-tag-to-upload-url-action's Issues

${{ steps.fetch-release.outputs.uploadUrl }} seems wrong

Hello!

I'm trying to use your action to fetch a given release by tag name.
This allows me to conditionally create a new release or simply upload back to the old release.

However, I noticed something wrong in my input:
As I can see in your code⁽¹⁾, you seem to print a "sanitized" version of the upload URL, removing the {?name,label} part, which obviously has nothing to do with the URL.
However, you set the output of the action to the "unsanitized" version, resulting in a failure to upload an asset to the given upload URL (as can be seen here: https://github.com/zilch-lang/specification/runs/1498294723?check_suite_focus=true https://github.com/zilch-lang/specification/runs/1498356591?check_suite_focus=true ─ you can also notice that I tested to print the fetched URL ─ the action is defined here: https://github.com/zilch-lang/specification/blob/8a76035feec2f3f1cf87ae0a84b2f45d90024fbb/.github/workflows/release-pdf.yml#L32-L45 ⁽²⁾).
I don't have much experience using github actions, so I believe I may be missing something.

Can you confirm that this is indeed an error with your action?

Thanks.

⁽¹⁾:

core.setOutput('uploadUrl', value.data.upload_url);
console.log('uploadUrl: ' + value.data.upload_url.replace('{?name,label}', ''));

⁽²⁾:
image

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.