Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola-corbellini committed Aug 8, 2023
1 parent 5d639eb commit 6aa9f06
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Cheshire Cat Action create tag
name: Create tag

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -8,30 +8,24 @@ on:
push:
branches:
- "main"
- "feature/tag_workflow"
tags:
- "*.*.*"

permissions:
contents: write

env:
PLUGIN_JSON: "0.0.1"
TAG_EXISTS: false

jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: SebRollen/[email protected]
- name: Read TOML
uses: SebRollen/[email protected]
id: read_toml
with:
file: '/core/pyproject.toml'
file: 'core/pyproject.toml'
field: 'project.version'
- name: Publish tag
if: env.TAG_EXISTS == false
uses: rickstaa/action-create-tag@v1
uses: richardsimko/update-tag@v1
with:
tag: "${{steps.read_toml.outputs.value}}"
tag_exists_error: false
tag_name: "${{steps.read_toml.outputs.value}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6aa9f06

Please sign in to comment.