Merge pull request #414 from nicola-corbellini/main-1 #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create tag | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- "main" | |
permissions: | |
contents: write | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Read TOML | |
uses: SebRollen/[email protected] | |
id: read_toml | |
with: | |
file: 'core/pyproject.toml' | |
field: 'project.version' | |
- name: Publish tag | |
uses: richardsimko/update-tag@v1 | |
with: | |
tag_name: "${{steps.read_toml.outputs.value}}" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |