This action get the version from tag.
To be able to use this action, you must retreive all the history of the repository by using the fetch-depth
option of the actions/checkout@v4
as bellow
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Mandatory to use the generate version from tag action
- name: Get version from tag
id: tag
uses: 0x01001/[email protected]
- name: Update version in YAML
run: sed -i 's/99.99.99+99/${{ steps.tag.outputs.version }}+${{ github.run_number }}/g' pubspec.yaml
version
: The version number of tag