Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-606

Release assets on GitHub must be updated when re-uploading

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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@mongodb.com Michael Rose (Inactive)
            Reporter:
            michael.rose@mongodb.com Michael Rose (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: