Skip to content

fix pattern

fix pattern #2

name: build gh release from tag
on:
push:
tags:
- "*/v*"
jobs:
get-service-from-tag:
runs-on: ubuntu-latest
steps:
- uses: olegtarasov/[email protected]
id: tagName
with:
tagRegex: (?<service>.*)\/v(?<version>.*)" #example: backend/v1.2.3
- name: show-service
run: |
echo ${{ steps.tagName.outputs.service }}
echo ${{ steps.tagName.outputs.version }}