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.

Parentheses in asset_name get replaced with periods #57

@archon810

Description

@archon810

Hi,

We have the following action:

# Upload Development APK to Release
      - name: Upload Development APK to Release
        uses: actions/upload-release-asset@v1
        if: startsWith(github.ref, 'refs/tags/')
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: "app/apks/${{ steps.generate_apk_names.outputs.NAME_DEVELOPMENT }}"
          asset_name: ${{ steps.generate_apk_names.outputs.NAME_DEVELOPMENT }}
          asset_content_type: application/zip

Our NAME_DEVELOPMENT contains parentheses (for example, app.prod-v1.3.0-(15-5)-6064eac-release.apk), but upon upload, the files end up with ( and ) replaced with periods, like so: app.prod-v1.3.0-.15-5.-6064eac-release.apk.

NAME_DEVELOPMENT is used by another action (actions/upload-artifact) and the same name gets uploaded properly there, with parentheses not replaced.

Is this a bug in this action?

Thanks.

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