Release assets on GitHub must be updated when re-uploading

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 0.8.1
    • Affects Version/s: None
    • Component/s: Build
    • None
    • 2
    • Iteration Watermelon
    • Not Needed

      When running the release_draft task in Evergreen, the assets are uploaded to the GitHub draft release.

      However, only the first upload will work. Subsequent executions would try to upload an already existing asset which is rejected by GitHub.

      There are two ways to solve this problem:
      1. Delete an existing release asset (https://docs.github.com/en/rest/reference/repos#delete-a-release-asset) and then upload
      2. Update an existing release asset (https://docs.github.com/en/rest/reference/repos#update-a-release-asset)

      Both solutions involve loading the currently uploaded assets for the targeted draft release (https://docs.github.com/en/rest/reference/repos#list-release-assets).

            Assignee:
            Michael Rose (Inactive)
            Reporter:
            Michael Rose (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: