Skip to content

Commit

Permalink
Merge pull request #4 from initia-labs/feat/fix-version
Browse files Browse the repository at this point in the history
add v to version.
  • Loading branch information
ALPAC-4 authored Nov 18, 2024
2 parents dc3ed0d + 5b7d6b0 commit aaa0b87
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ on:

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: echo "##[set-output name=version;]$(echo '${{ github.event.head_commit.message }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')"
- name: make release
uses: actions/create-release@v1
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 }}
release_name: ${{ steps.get_version.outputs.version }}

0 comments on commit aaa0b87

Please sign in to comment.