Skip to content
This repository was archived by the owner on Mar 4, 2021. It is now read-only.
This repository was archived by the owner on Mar 4, 2021. It is now read-only.

Error uploading to https://github.our_enterprise.com/storage/releases/xxxx/files: 404 #72

@s850042002

Description

@s850042002

We're testing this action in our github enterprise environment, but we keep getting the following error message.

Run actions/upload-release-asset@v1
  with:
    upload_url: https://github.our_enterprise.com/api/uploads/repos/our_rganization/ConsoleAction/releases/2251/assets{?name,label}
    asset_path: ./ConsoleAction_x64.zip
    asset_name: ConsoleAction_x64.zip
    asset_content_type: application/zip
  env:
    GITHUB_TOKEN: ***
##[error]Error uploading to https://github.our_enterprise.com/storage/releases/2251/files: 404

We use the example code without any modification. And confirm the artifact exist.

      - name: Create Release
        id: create_release
        uses: actions/create-release@latest
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          tag_name: ${{ github.ref }} 
          release_name: Release ${{ github.ref }}

      - name: Upload Release Asset (x64)
        id: upload-release-asset-x64
        uses: actions/upload-release-asset@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: ./ConsoleAction_x64.zip
          asset_name: ConsoleAction_x64.zip
          asset_content_type: application/zip

Why does it upload the artifact to https://github.our_enterprise.com/storage/release?
And how do we fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions