File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ pull_request :
78 workflow_dispatch :
89
910jobs :
1011 update_release_draft :
11- if : ${{ !contains(github.head_ref, 'doc/changelog-update-') && startsWith(github.event.head_commit.message, 'Merge pull request') }}
1212 permissions :
1313 contents : write
1414 pull-requests : write
2828 echo "This commit is not target. Skip the workflow."
2929 echo "SKIP_JOB=true" >> $GITHUB_OUTPUT
3030 else
31+ echo "This commit is target."
32+ echo ${{ github.event.head_commit.message }}
3133 echo "SKIP_JOB=false" >> $GITHUB_OUTPUT
3234 fi
3335 - uses : release-drafter/release-drafter@v6
@@ -104,5 +106,6 @@ jobs:
104106 exit 0
105107 fi
106108 git commit -am "Update Version With Release Draft - $REPLACE_VERSION"
107- git push origin main
109+ BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
110+ git push origin $BRANCH_NAME
108111
You can’t perform that action at this time.
0 commit comments