Skip to content

Commit 7428b2d

Browse files
authored
Merge pull request #25 from IShix-g/release
v1.0.36
2 parents 9bba746 + 7aa62b2 commit 7428b2d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/toc-generator_push.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: TOC Generator via push
22

3-
on: push
3+
on:
4+
push:
5+
tags-ignore:
6+
- '**'
7+
pull_request:
48

59
permissions:
610
contents: write
@@ -9,7 +13,7 @@ jobs:
913
validate-branch:
1014
runs-on: ubuntu-22.04
1115
steps:
12-
- name: Check if ref is default branch
16+
- name: Check if ref is not default branch
1317
run: |
1418
target_branch="${{ github.ref }}"
1519
default_branch="${{ github.event.repository.default_branch }}"
@@ -26,15 +30,15 @@ jobs:
2630
validate-commit-message:
2731
runs-on: ubuntu-22.04
2832
steps:
29-
- name: Check if ref is default branch
33+
- name: Verify commit message contains...
3034
run: |
3135
commit_message="${{ github.event.head_commit.message }}"
3236
3337
if [[ "$commit_message" != *"Update package.json"* ]]; then
34-
echo "Commit message does not match: Update package.json"
38+
echo "::notice::Commit message does not match: Update package.json"
3539
echo "passed=1" >> $GITHUB_OUTPUT
3640
else
37-
echo "Commit message matches: Update package.json"
41+
echo "::notice::Commit message matches: Update package.json"
3842
fi
3943
4044
toc-generator:

0 commit comments

Comments
 (0)