Skip to content
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

Uploading to a draft release #10

Open
AriaMoradi opened this issue Feb 14, 2021 · 4 comments
Open

Uploading to a draft release #10

AriaMoradi opened this issue Feb 14, 2021 · 4 comments

Comments

@AriaMoradi
Copy link

AriaMoradi commented Feb 14, 2021

When you try to upload to a draft release it trows the error "Error: Not Found".

my case:
my workflow: https://github.com/AriaMoradi/Tachidesk/blob/d996c44b2425a7fc5fa00bba60e4953ef5e5aeed/.github/workflows/publish.yml
the failed action: https://github.com/AriaMoradi/Tachidesk/actions/runs/566468422

@portellaa
Copy link

Hi @AriaMoradi
Just for clarification, i'm not a maintainer or contributor, but i think i can help on this.

A draft release doesn't have a tag associated and the action uses it to find the release associated.

I think in the current implementation of the action, you may not be able to achieve what you want, my two cents.

Again, i'm not a contributor, i just use the action so wait for an official answer 🙇

@AriaMoradi
Copy link
Author

Currently I satisfy my workflow needs with

      - name: Upload Release
        uses: xresloader/upload-to-github-release@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          file: "master/repo/*"
          tags: true
          draft: true
          verbose: true

@Freezor
Copy link

Freezor commented Jun 11, 2024

Hi,

I'm a bit confused if this is still an issue or not. Because currently in my setup it still throws the same error. @mbrubeck could you help me on that?

@mbrubeck
Copy link

Yes, as far as I know this is still an issue. I worked around it by no longer using draft releases in my workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants