Skip to content

Merge pull request #4 from initia-labs/feat/fix-version #6

Merge pull request #4 from initia-labs/feat/fix-version

Merge pull request #4 from initia-labs/feat/fix-version #6

Workflow file for this run

name: Create Tag & Release
on:
push:
branches:
- main
jobs:
build:
if: github.event.head_commit.author.email == '[email protected]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: get versions
id: get_version
run: |
version=$(echo '${{ github.event.head_commit.message }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
echo "version=v$version" >> $GITHUB_OUTPUT
- name: create release
uses: initia-labs/actions/create-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.version }}
release_name: ${{ steps.get_version.outputs.version }}