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

New release asset upload 'Deprecation' message in log output #129

Closed
nialov opened this issue Jul 27, 2021 · 19 comments · Fixed by #134
Closed

New release asset upload 'Deprecation' message in log output #129

nialov opened this issue Jul 27, 2021 · 19 comments · Fixed by #134

Comments

@nialov
Copy link

nialov commented Jul 27, 2021

Info

softprops/action-gh-release@v1 failed with a 'Deprecation' error.

See gist link for the error message:

https://gist.github.com/nialov/e151ed3511bc55de3dae2bacb91b0ddb

Background

My workflow additionally uses:

      # Checkout repository
      - name: Checkout
        uses: actions/checkout@v2

      - name: Set up python
        uses: actions/setup-python@v2
        with:
          python-version: 3.8

      - name: Install Poetry
        uses: snok/[email protected]

      - name: Zip
        uses: papeloto/action-zip@v1
@hipersayanX
Copy link

hipersayanX commented Jul 27, 2021

Same problem for me.

@softprops
Copy link
Owner

This probably came with a release updates you should be able to use @0.5.1 in the mean time

https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md#015

I’ll take a look tonight

@hipersayanX
Copy link

hipersayanX commented Jul 27, 2021

@softprops

I tried using 0.5.1 as you said, as

uses: softprops/[email protected]

And it give me the following error

Error: Unable to resolve action `softprops/[email protected]`, unable to find version `0.5.1`

EDIT

Sorry, my fault, it must be @v0.5.1.

@nialov
Copy link
Author

nialov commented Jul 27, 2021

Seems like my issue was of my own making, was forcing a release on top of an already existing release (duplicate tags) or something similarly dumb. The deprecation is seemingly only a warning (appears on successful runs also) but it does make it confusing on what the actual issue is.

The below 'standard' config works for me:

- name: Release
  uses: softprops/action-gh-release@v1

@hipersayanX
Copy link

Fixed for me using @v0.1.6.

@linonetwo
Copy link

Same on me https://github.com/tiddly-gittly/TiddlyGit-Desktop/runs/3174941044?check_suite_focus=true

⬆️ Uploading RELEASES...
Deprecation: [@octokit/rest] "file" parameter is deprecated for ".repos.uploadReleaseAsset()". Use "data" instead
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:437047
    at Array.forEach (<anonymous>)
    at Object.s [as uploadReleaseAsset] (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:436958)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:52043
    at Generator.next (<anonymous>)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:50565
    at new Promise (<anonymous>)
    at i (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:50313)
    at Object.t.upload (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:51907)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:44485 {
  name: 'Deprecation'
}
⬆️ Uploading TiddlyGit-0.4.1-a19-full.nupkg...
Deprecation: [@octokit/rest] "file" parameter is deprecated for ".repos.uploadReleaseAsset()". Use "data" instead
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:437047
    at Array.forEach (<anonymous>)
    at Object.s [as uploadReleaseAsset] (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:436958)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:52043
    at Generator.next (<anonymous>)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:50565
    at new Promise (<anonymous>)
    at i (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:50313)
    at Object.t.upload (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:51907)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:44485 {
  name: 'Deprecation'
}
⬆️ Uploading TiddlyGit-0.4.1-a19-Windows-arm64-setup.exe...
Deprecation: [@octokit/rest] "file" parameter is deprecated for ".repos.uploadReleaseAsset()". Use "data" instead
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:437047
⬆️ Uploading RELEASES...
    at Array.forEach (<anonymous>)
    at Object.s [as uploadReleaseAsset] (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:436958)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:52043
    at Generator.next (<anonymous>)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:50565
    at new Promise (<anonymous>)
    at i (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:50313)
    at Object.t.upload (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:51907)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:44485 {
  name: 'Deprecation'
}
Deprecation: [@octokit/rest] "file" parameter is deprecated for ".repos.uploadReleaseAsset()". Use "data" instead
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:437047
    at Array.forEach (<anonymous>)
    at Object.s [as uploadReleaseAsset] (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:436958)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:52043
    at Generator.next (<anonymous>)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:50565
    at new Promise (<anonymous>)
    at i (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:50313)
    at Object.t.upload (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:51907)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:44485 {
  name: 'Deprecation'
}
⬆️ Uploading TiddlyGit-0.4.1-a19-full.nupkg...
Deprecation: [@octokit/rest] "file" parameter is deprecated for ".repos.uploadReleaseAsset()". Use "data" instead
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:437047
    at Array.forEach (<anonymous>)
    at Object.s [as uploadReleaseAsset] (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:436958)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:52043
    at Generator.next (<anonymous>)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:50565
    at new Promise (<anonymous>)
    at i (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:50313)
    at Object.t.upload (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:51907)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:44485 {
  name: 'Deprecation'
}
⬆️ Uploading TiddlyGit-0.4.1-a19-Windows-x64-setup.exe...
Deprecation: [@octokit/rest] "file" parameter is deprecated for ".repos.uploadReleaseAsset()". Use "data" instead
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:437047
    at Array.forEach (<anonymous>)
    at Object.s [as uploadReleaseAsset] (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:436958)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:52043
    at Generator.next (<anonymous>)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:50565
    at new Promise (<anonymous>)
    at i (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:50313)
    at Object.t.upload (D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:51907)
    at D:\a\_actions\softprops\action-gh-release\v1\dist\index.js:1:44485 {
  name: 'Deprecation'
}
Error: Validation Failed: {"resource":"ReleaseAsset","code":"already_exists","field":"name"}

I think in this time, I am using @v0.1.6.

@softprops
Copy link
Owner

I can reproduce the warnings but not yet the error. I have a test run here (sample run output below)

Run softprops/[email protected]
⬆️ Uploading a.txt...
Deprecation: [@octokit/rest] "file" parameter is deprecated for ".repos.uploadReleaseAsset()". Use "data" instead
    at /home/runner/work/_actions/softprops/action-gh-release/v0.1.7/dist/index.js:1:437047
⬆️ Uploading b.txt...
    at Array.forEach (<anonymous>)
    at Object.s [as uploadReleaseAsset] (/home/runner/work/_actions/softprops/action-gh-release/v0.1.7/dist/index.js:1:436958)
    at /home/runner/work/_actions/softprops/action-gh-release/v0.1.7/dist/index.js:1:52043
    at Generator.next (<anonymous>)
    at /home/runner/work/_actions/softprops/action-gh-release/v0.1.7/dist/index.js:1:50565
    at new Promise (<anonymous>)
    at i (/home/runner/work/_actions/softprops/action-gh-release/v0.1.7/dist/index.js:1:50313)
    at Object.t.upload (/home/runner/work/_actions/softprops/action-gh-release/v0.1.7/dist/index.js:1:51907)
    at /home/runner/work/_actions/softprops/action-gh-release/v0.1.7/dist/index.js:1:44485 {
  name: 'Deprecation'
}
Deprecation: [@octokit/rest] "file" parameter is deprecated for ".repos.uploadReleaseAsset()". Use "data" instead
    at /home/runner/work/_actions/softprops/action-gh-release/v0.1.7/dist/index.js:1:437047
    at Array.forEach (<anonymous>)
    at Object.s [as uploadReleaseAsset] (/home/runner/work/_actions/softprops/action-gh-release/v0.1.7/dist/index.js:1:436958)
    at /home/runner/work/_actions/softprops/action-gh-release/v0.1.7/dist/index.js:1:52043
    at Generator.next (<anonymous>)
    at /home/runner/work/_actions/softprops/action-gh-release/v0.1.7/dist/index.js:1:50565
    at new Promise (<anonymous>)
    at i (/home/runner/work/_actions/softprops/action-gh-release/v0.1.7/dist/index.js:1:50313)
    at Object.t.upload (/home/runner/work/_actions/softprops/action-gh-release/v0.1.7/dist/index.js:1:51907)
    at /home/runner/work/_actions/softprops/action-gh-release/v0.1.7/dist/index.js:1:44485 {
  name: 'Deprecation'
}
🎉 Release ready at https://github.com/softprops/action-gh-releases-test/releases/tag/v0.1.2

a warning is an indicator that I need to upgrade something but should not fail your build. which makes this a bit less urgent for me. something that I can perhaps get to this weekend

@linonetwo it looks like in your case the real error isn't related to the warnings but the error that followed

Error: Validation Failed: {"resource":"ReleaseAsset","code":"already_exists","field":"name"}

This indicates that you may have already uploaded a release asset of the same name causing a conflict which I believe is failing your build. I'd need to see your workflow setup to get a better sense for how the release asset might have been previously uploaded. That said, upserting (updating or creating) assets is something I'd love to add support for in this gh action

@linonetwo
Copy link

linonetwo commented Jul 28, 2021

Thank you @softprops , my workflow is https://github.com/tiddly-gittly/TiddlyGit-Desktop/blob/c0c979a1fb01648cdc1df57a033485bbe57d7a20/.github/workflows/release.yml#L151-L175

I upload files in a folder, so there can't be two file with same name...

It is not easy to know which file is in conflict, hope there can be a log about file name.


https://github.com/tiddly-gittly/TiddlyGit-Desktop/blob/c0c979a1fb01648cdc1df57a033485bbe57d7a20/.github/workflows/release.yml#L113-L120

I have three upload for each platform, so maybe they upload a metadata file that have same name? Hope I can just ignore this warning, just like what it does before...

@softprops
Copy link
Owner

Would it be possible to add an ls directory listing in the step prior to debug?

@linonetwo
Copy link

Seems two windows build make same TiddlyGit-0.4.1-a21-full.nupkg file, and it causes the error, previously this will just silently overwritten.

@Loyalsoldier
Copy link

Loyalsoldier commented Jul 29, 2021

Same problem here:

https://github.com/Loyalsoldier/v2ray-rules-dat/runs/3176493282?check_suite_focus=true
https://github.com/Loyalsoldier/v2ray-rules-dat/runs/3186538209?check_suite_focus=true

In the above workflows, assets were uploaded successfully, but the workflows step failed with deprecation notice.

@linonetwo
Copy link

I limit the uploaded file to only **/*.exe, then it works fine. Just can't upload anything that may have same name. And rerun-all-jobs is not working anymore, because the re-upload will fail.

@kiview
Copy link

kiview commented Jul 29, 2021

I see the same problem in our build with regards to duplicate uploads. However, AFAIK duplicate uploads worked for us before, so I assume there is some regression that changed this behavior?

In addition, the error is logged as HTML text with a base64 encoded image:

Error: <!DOCTYPE html>
<!--

Hello future GitHubber! I bet you're here to remove those nasty inline styles,
DRY up these templates and make 'em nice and re-usable, right?

Please, don't. https://github.com/styleguide/templates/2.0

-->
<html>
  <head>
    <title>Unicorn! &middot; GitHub</title>
    <style type="text/css" media="screen">
      body {
        background-color: #f1f1f1;
        margin: 0;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      }

      .container { margin: 50px auto 40px auto; width: 600px; text-align: center; }

      a { color: #4183c4; text-decoration: none; }
      a:hover { text-decoration: underline; }

      h1 { letter-spacing: -1px; line-height: 60px; font-size: 60px; font-weight: 100; margin: 0px; text-shadow: 0 1px 0 #fff; }
      p { color: rgba(0, 0, 0, 0.5); margin: 10px 0 10px; font-size: 18px; font-weight: 200; line-height: 1.6em;}

      ul { list-style: none; margin: 25px 0; padding: 0; }
      li { display: table-cell; font-weight: bold; width: 1%; }

      .logo { display: inline-block; margin-top: 35px; }
      .logo-img-2x { display: none; }
      @media
      only screen and (-webkit-min-device-pixel-ratio: 2),
      only screen and (   min--moz-device-pixel-ratio: 2),
      only screen and (     -o-min-device-pixel-ratio: 2/1),
      only screen and (        min-device-pixel-ratio: 2),
      only screen and (                min-resolution: 192dpi),
      only screen and (                min-resolution: 2dppx) {
        .logo-img-1x { display: none; }
        .logo-img-2x { display: inline-block; }
      }

      #suggestions {
        margin-top: 35px;
        color: #ccc;
      }
      #suggestions a {
        color: #666666;
        font-weight: 200;
        font-size: 14px;
        margin: 0 10px;
      }

    </style>
  </head>
  <body>

    <div class="container">
      <p>
        <img width="200" src="data:image/png;base64,
iVBORw0KGgoAAAANSUhEUgAAAZAAAAGZCAMAAACQbpc2AAADAFBMVEWEBz6FAD6FAD6GAD+MAEGOAEOKAEGOAEOGAD+IAECOAEOOAUOOAEOOAEOOAEOOAEOOAEOOAEOCACyOAEQAAACKAEJpoJ2KADqu0eSKAD2BAD+KAD6AxCNqwoX1Ziawo9LYnGuwhL7aiwaIyYudst6DlrnhcWvCcVvlbE9PvsL2u3uYmdCZum9Rns7clUYsreOYp2nuj37kiZLUfqhvxafqfmrNWEjA22uz1Vu6lsiRAArWhLfgdoONnF36rWrzpz/ajy/LbqR8pdWDVXx8faN6m0+6hE3+1pmHP2mTy1b4k1p/ueFlj7vMfzyBs1v/2GfLpFL5rQD+7teQABj4n0/rpCz6r1Z8apP+4rrfw1iV0JyLUkqQACTDnah5AACtaEt9zcGNhleJbU5lsOFRvE5FuOPS4WLSt7+8ajvXcJpcyNvhztSwUkTGgZz9uDSxRnPZwsnTkqy7jpsPt/AxyvnAeJMAxPnMiqPJYIyzf4/KqrPedaK5bIsQwfTo2t72hUepPWvn6mO8VoXrgbDRaJXle6r75FzZm7S2TnyTNUXv5eiDAA6j0WmKyWv51liRAACjP0OZNVuwa4L+uQAcw/SiNGH57mIxxPKmU3DgpL2sX3rutc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HQU7CXdftYsGDBf+24sGbVGbXXIohInMiUA6G/Io2ISHIeShGbrR0jje3NtRurJRoTmm9rsi2mwS1uJAnJiOjkorjWKcyrui8KKfo9txCU8poP26L6r7VEoApUDNkrQ1QXonUCS8iKBgKfdTjbi0qk4GFAci+dBZFFAHKWAxG7wuPtun1ADwj2ggcoLMRsHWnhDrCBmRCSM5gmVYlkTjEQY0AIbR0r6kP040tKNmKUPOjEE5hLQdnezBvAFEn45QBePNnaSrcX8VhhRMewEbEjIF6mhpZ1wlZaO3kFUh85k3Vg6I8A8jkqjoFoIDSAcn3YG7JWCj0PPffcc4sWLYo0kLMkAOGmohEpvHjxUlg8mZSJGj9W8WXeBRCwLODmco4jWWHm2W8ciEw1EDH6i3EUDMvxXqPVOiwF6WxdR14HT4DLm2y8AQzxC5ichAjIFiZzhxWtPgv1Gh0gAgl/tXs3dbGi128B5DUA+eLNnsHrtGQYoVGsHA5jHC8rm2RWlc0c1kqQMbjknuXCIxFLBJTTp7ATdAwoYVzCeKxZXodEa8ca/njHAk6EPFedIAIb4bnWVAMxLhaqOGW3WMkEGmtRra1cNFLacFaiRdQkALIZNAjJOrIP5zqgiZRIvyjW6OG+s2r3/pwJh+QGh17BX/LFn04MiiXD6NpwmAGvkFN2kmRviNMJOWqAhagIHrn06JKujtOChrFFYsFuOaVgy/mhP1O3/GXQ0LTjiDAblPB18FqCCH1m0NQDMan9eEimJX6ntRoBBVVJgd7bQgNYEc1IHOeTpBe5gQCOuo2TqODh3ICDbnBX9a24XsBE13QHEPQWYQgHdr0eDYRavm5qX3oV2eUaNHQA2+AwIyzM+vxzyzkQ7rGIiIjwi8SDSakQkCVLyH0RhjWXLvE4YmjNAg0PIVkR9HqR2sxEsmmaYiDiLBv048UM3UY6PZRajRd7S47rvS00gBXVRiwvEpAtzEkGAomYYkBRK3iFnBbUByB

@softprops
Copy link
Owner

This think this regressed in the fix here #97

@softprops
Copy link
Owner

I’m going to open a separate issue to not confuse this with the deprecation warnings

@softprops
Copy link
Owner

I’m going to update the title of this issue. Releases don’t fail with just the gh api warnings

@softprops softprops changed the title Release failed with error 'Deprecation' New release asset upload 'Deprecation' message in log output Jul 29, 2021
@hipersayanX
Copy link

Seem many people are talking about using this action for uploading duplicated files, and I forgot to say but this is my case, I've configured my workflow to upload a new set of assets with every new commit so users can test it, the assets are disposable so they aren't versioned at all, and are always uploaded to the same tag/release.
From what you said before:

@softprops

This indicates that you may have already uploaded a release asset of the same name causing a conflict which I believe is failing your build.

You should consider allow overwriting the assets.

alpeb added a commit to linkerd/linkerd2 that referenced this issue Aug 2, 2021
With had glob patterns in the Create Release step which resulted in
the same files being uploaded more than once, which since the last
`action-gh-release` results in an error (see softprops/action-gh-release#131).

Also removed the GITHUB_TOKEN env var which is not required.

This step still outputs some deprecation messages, which is being
addressed upstream (see softprops/action-gh-release#129)
Pothulapati pushed a commit to linkerd/linkerd2 that referenced this issue Aug 4, 2021
With had glob patterns in the Create Release step which resulted in
the same files being uploaded more than once, which since the last
`action-gh-release` results in an error (see softprops/action-gh-release#131).

Also removed the GITHUB_TOKEN env var which is not required.

This step still outputs some deprecation messages, which is being
addressed upstream (see softprops/action-gh-release#129)
@Loyalsoldier
Copy link

Loyalsoldier commented Aug 8, 2021

Use the v0.1.8 and failed again (assets were uploaded successfully to github release but the workflow failed):

👩‍🏭 Creating new GitHub release for tag 202108080610...
⬆️ Uploading apple-cn.txt...
⬆️ Uploading direct-list.txt...
⬆️ Uploading direct-tld-list.txt...
⬆️ Uploading geoip.dat...
⬆️ Uploading geoip.dat.sha256sum...
⬆️ Uploading geosite.dat...
⬆️ Uploading geosite.dat.sha256sum...
⬆️ Uploading gfw.txt...
⬆️ Uploading google-cn.txt...
⬆️ Uploading greatfire.txt...
⬆️ Uploading proxy-list.txt...
⬆️ Uploading proxy-tld-list.txt...
⬆️ Uploading reject-list.txt...
⬆️ Uploading reject-tld-list.txt...
⬆️ Uploading rules.zip...
⬆️ Uploading rules.zip.sha256sum...
⬆️ Uploading win-extra.txt...
⬆️ Uploading win-spy.txt...
⬆️ Uploading win-update.txt...
Error: Failed to upload release asset ${name}. recieved status code ${resp.status}
${json.message}
${json.errors}

https://github.com/Loyalsoldier/v2ray-rules-dat/runs/3272404245?check_suite_focus=true

@Loyalsoldier
Copy link

Loyalsoldier commented Aug 8, 2021

Use v0.1.10 and failed again:

👩‍🏭 Creating new GitHub release for tag 202108081632...
⚠️ GitHub release failed with status: 404, retrying... (2 retries remaining)
👩‍🏭 Creating new GitHub release for tag 202108081632...
⚠️ GitHub release failed with status: 422, retrying... (1 retries remaining)
👩‍🏭 Creating new GitHub release for tag 202108081632...
⚠️ GitHub release failed with status: 422, retrying... (0 retries remaining)
❌ Too many retries. Aborting...
Error: Too many retries.

https://github.com/Loyalsoldier/v2ray-rules-dat/runs/3274409350?check_suite_focus=true

sannimichaelse pushed a commit to sannimichaelse/linkerd2 that referenced this issue Aug 10, 2021
With had glob patterns in the Create Release step which resulted in
the same files being uploaded more than once, which since the last
`action-gh-release` results in an error (see softprops/action-gh-release#131).

Also removed the GITHUB_TOKEN env var which is not required.

This step still outputs some deprecation messages, which is being
addressed upstream (see softprops/action-gh-release#129)
sannimichaelse pushed a commit to sannimichaelse/linkerd2 that referenced this issue Aug 13, 2021
With had glob patterns in the Create Release step which resulted in
the same files being uploaded more than once, which since the last
`action-gh-release` results in an error (see softprops/action-gh-release#131).

Also removed the GITHUB_TOKEN env var which is not required.

This step still outputs some deprecation messages, which is being
addressed upstream (see softprops/action-gh-release#129)

Signed-off-by: Sanni Michael <[email protected]>
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

Successfully merging a pull request may close this issue.

6 participants