Skip to content

Commit 071161f

Browse files
authored
fix(commitlint): fix commitlint release workflow (#132)
1 parent 913ff37 commit 071161f

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

.github/workflows/commitlint.yaml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,12 @@ on:
66
- opened
77
- edited
88
- synchronize
9-
push:
10-
branches:
11-
- main
12-
paths:
13-
- '.github/workflows/commitlint.yaml'
14-
- '.github/workflows/pr-title-commitlint.yaml'
159

1610
concurrency:
1711
group: ${{ github.workflow }}-${{ github.ref }}
1812
cancel-in-progress: true
1913

2014
jobs:
2115
pr-title-commitlint:
16+
if: ${{ success() && github.event_name == 'pull_request' }}
2217
uses: ./.github/workflows/pr-title-commitlint.yaml
23-
24-
release-commitlint:
25-
needs: pr-title-commitlint
26-
if: ${{ success() && github.event_name == 'push' }}
27-
uses: ./.github/workflows/on-release-repo.yaml
28-
with:
29-
job-name: release-commitlint
30-
release-tag-format: 'v${version}-pr-title-commitlint'
31-
slack-channel: ${{ vars.SLACK_CHANNEL }}
32-
secrets:
33-
slack-token: ${{ secrets.SLACK_TOKEN }}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release Commit Lint PR Title
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/commitlint.yaml'
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: false
13+
14+
jobs:
15+
release-pr-title-commitlint:
16+
uses: ./.github/workflows/on-release-repo.yaml
17+
with:
18+
job-name: release-pr-title-commitlint
19+
release-tag-format: 'v${version}-pr-title-commitlint'
20+
slack-channel: ${{ vars.SLACK_CHANNEL }}
21+
secrets:
22+
slack-token: ${{ secrets.SLACK_TOKEN }}

0 commit comments

Comments
 (0)