Skip to content

Commit f1b622b

Browse files
committed
chore: Use commit message for test in CI
1 parent b79a84a commit f1b622b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

.github/workflows/build_test_publish.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v5
1616

17-
- name: Set environment variables
18-
run: |
19-
GH_COMMIT_MESSAGE="$(head -n 1 <<< "${{github.event.head_commit.message}}")"
20-
GIT_COMMIT_MESSAGE="$(git log --format=%B -n 1 ${{github.event.after}} | head -n 1)"
21-
echo "COMMIT_MESSAGE=\"$(test "${GH_COMMIT_MESSAGE}" && echo "${GH_COMMIT_MESSAGE}" || echo "${GIT_COMMIT_MESSAGE}")\"" >> $GITHUB_ENV
22-
echo "PR_TITLE=\"${{github.event.pull_request.title}}\"" >> $GITHUB_ENV
23-
2417
- name: Set up Node.js
2518
uses: actions/setup-node@v5
2619
with:
@@ -37,7 +30,7 @@ jobs:
3730
- name: Release
3831
if: |
3932
github.event_name != 'pull_request' &&
40-
!startsWith(env.COMMIT_MESSAGE || env.PR_TITLE, '"chore')
33+
!startsWith(github.event.head_commit.message, 'chore')
4134
env:
4235
GIT_AUTHOR_NAME: ffflobot
4336
GIT_AUTHOR_EMAIL: [email protected]

0 commit comments

Comments
 (0)