Skip to content

0x01001/get-version-from-tag

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get version from tag action

This action get the version from tag.

Usage

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

Outputs

  • version: The version number of tag

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published