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.

Feature request: include tag_name in outputs #24

@nrittsti

Description

@nrittsti

Hi there,

i would like to include the release version in the 'Release Asset'.
This requires the value of ${{ github.ref }} without the 'refs/tags/' prefix.

According to the API Documentation the version will be returned in the field tag_name.

${{ steps.create_release.outputs.tag_name }}

Currently outputs is limited to id, html_url and upload_url.

Example use case:



- name: Upload Release Asset
      id: upload-release-asset 
      uses: actions/upload-release-asset@v1.0.1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        upload_url: ${{ steps.create_release.outputs.upload_url }}        
        asset_path: ./build/distributions/myapp-${{ steps.create_release.outputs.tag_name }}-bin.zip
        asset_name: myapp-${{ steps.create_release.outputs.tag_name }}-bin.zip
        # example:  asset_name: myapp-v1.0.2-bin.zip    
        asset_content_type: application/zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions