File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 11name : TOC Generator via push 
22
3- on : push 
3+ on :
4+   push :
5+     tags-ignore :
6+       - ' **' 
7+   pull_request :
48
59permissions :
610  contents : write 
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:
2630validate-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
4044toc-generator :
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments