File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change 33on :
44 push :
55 pull_request :
6- pull_request_target :
7- types : [opened, reopened, synchronize]
86
97concurrency :
108 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1513 COMPOSER_ROOT_VERSION : " 4.1.x-dev"
1614
1715jobs :
18- commitlint :
19- if : github.event_name == 'pull_request_target'
20- runs-on : ubuntu-latest
21- steps :
22- - uses : actions/checkout@v4
23- with :
24- fetch-depth : 0
25- - name : Run commitlint
26- run : |
27- base_sha="${{ github.event.pull_request.base.sha }}"
28- head_sha="${{ github.event.pull_request.head.sha }}"
29- first_commit_sha=$(git rev-list --no-merges --reverse $base_sha..$head_sha | head -n 1)
30- commit_message=$(git log -1 --pretty=%B $first_commit_sha)
31- # we can't use npx see https://github.com/conventional-changelog/commitlint/issues/613
32- echo '{}' > package.json
33- npm install --no-fund --no-audit @commitlint/config-conventional @commitlint/cli
34- echo "$commit_message" | ./node_modules/.bin/commitlint -g .commitlintrc
35-
3616 architecture :
3717 name : Check components interdependencies
3818 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments