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

Delete release and create new one? #59

Open
probonopd opened this issue Oct 10, 2021 · 3 comments
Open

Delete release and create new one? #59

probonopd opened this issue Oct 10, 2021 · 3 comments

Comments

@probonopd
Copy link

Is it possible to delete an existing release (if one with the same name already exsits) and create a new one?
overwrite: true seems not do do this for me.

@yue4u
Copy link

yue4u commented Oct 27, 2021

Might related to #35, #42. I have a single file to upload per strategy/matrix with overwrite: true but it throws Validation Failed: {"resource":"ReleaseAsset","code":"already_exists","field":"name"}.

@lukebarone
Copy link

I'm having the same issue.

    # Add it as a release
    - name: Publish release
      uses: svenstaro/upload-release-action@v2
      with:
        repo_token: ${{ secrets.DEPLOY_KEY }}
        file: FILENAME.zip
        asset_name: FILENAME.zip
        tag: master
        overwrite: true

I attempted to zip it up first (worked). When running the action again, it throws the Validation Failed: {"resource":"ReleaseAsset","code":"already_exists","field":"name"} error. Only using one file (linked item mentioned > 30 objects)

@svenstaro
Copy link
Owner

Hm this was supposed to be fixed with 2.6.0. I don't have time to look into this now. Could you try to debug it and send a PR?

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