Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
Guseyn committed Dec 1, 2023
1 parent e4790f9 commit 431cb92
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/ehtml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ jobs:
- uses: actions/checkout@v3
- name: Check Commit Message
run: |
last_commit_message=$(git log -1 --pretty=%B)
echo $last_commit_message
if [[ $last_commit_message =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
if [[ ${{ github.event.head_commit.message }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Release will be triggered for commit: $last_commit_message"
else
echo "No release will be triggered for commit: $last_commit_message"
Expand All @@ -43,11 +41,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ last_commit_message }}
release_name: Release ${{ last_commit_message }}
body: |
Changes in this Release
- First Change
- Second Change
tag_name: ${{ github.event.head_commit.message }}
release_name: Release ${{ github.event.head_commit.message }}
draft: false
prerelease: false

0 comments on commit 431cb92

Please sign in to comment.