Skip to content

Commit f2c2748

Browse files
feat: fix commit lint nodejs issue (#2)
* Try with PR only * Try node 16 * node 20 with corrected PR * feat: fix workflow Signed-off-by: Your Name [email protected] * feat: update to node.js 20 Signed-off-by: Trevor Dolby <[email protected]> * feat: update dependencies starter app (#348) --------- Signed-off-by: Trevor Dolby <[email protected]>
1 parent b621cd0 commit f2c2748

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/git-commit-lint.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
name: Git
22

3-
on:
4-
# Allows you to run this workflow manually from the Actions tab
5-
workflow_dispatch:
6-
pull_request:
3+
on: [pull_request]
74

85
jobs:
96
lint:
107
runs-on: ubuntu-latest
118
name: Lint Commit Messages
12-
9+
1310
steps:
1411
- uses: actions/checkout@v4
15-
#with:
16-
# ref: ${{ github.event.pull_request.head.sha }}
12+
with:
13+
ref: ${{ github.event.pull_request.head.sha }}
1714
- name: Use Node.js 20.x
1815
uses: actions/setup-node@v4
1916
with:
@@ -24,5 +21,4 @@ jobs:
2421
run: echo ${{ github.event.sender.login }}
2522
- name: Lint commit message
2623
if: ${{ github.event.sender.login != 'dependabot[bot]' }}
27-
#run: npx commitlint --from origin/${{ github.base_ref }} --to HEAD -g ./ui/package.json
28-
run: npx commitlint --from origin/refs/heads/master --to HEAD -g ./ui/package.json
24+
run: npx commitlint --from origin/${{ github.base_ref }} --to HEAD -g ./ui/package.json

0 commit comments

Comments
 (0)