dsaltares / fetch-gh-release-asset

Github Action to download an asset from a Github release
MIT License
113 stars 70 forks source link

🔖 expose version output from Github release tag #9

Closed bitbrain closed 4 years ago

bitbrain commented 4 years ago

Motivation

In a different step, I want to set the itch.io version to the one of the git tag. To integrate with this action, I need to access the git tag for that. Also, git tags may contain an invalid version number (e.g. v1.0) which needs to be converted to 1.0

Example usage

uses: josephbmanley/butler-publish-itchio-action@master
env:
   BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
   CHANNEL: windows
   ITCH_GAME: cave
   ITCH_USER: bitbrain
   PACKAGE: cave-windows.zip
   VERSION: ${{ steps.download-windows.outputs.version }}