Skip to content

Commit b8c1dbc

Browse files
committed
Update
1 parent d9c40e5 commit b8c1dbc

2 files changed

Lines changed: 26 additions & 12 deletions

File tree

.github/workflows/chore-main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Chore
2+
on:
3+
push:
4+
branches: [main]
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
draft-release:
12+
name: Draft Release
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: read
17+
steps:
18+
- name: Update release draft
19+
uses: release-drafter/release-drafter@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7.1.1
20+
with:
21+
token: ${{ github.token }}
Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
pull_request_target:
44
branches: [main]
55
types: [opened, reopened, edited, synchronize]
6-
push:
7-
branches: [main]
86

97
concurrency:
108
group: ${{ github.workflow }}-${{ github.ref }}
@@ -13,7 +11,6 @@ concurrency:
1311
jobs:
1412
check-pr-title:
1513
name: Check PR Title
16-
if: github.event_name == 'pull_request_target'
1714
runs-on: ubuntu-latest
1815
permissions:
1916
contents: read
@@ -50,17 +47,13 @@ jobs:
5047
header: conventional-commit-pr-title
5148
delete: true
5249

53-
release-drafter:
54-
name: ${{ github.event_name == 'pull_request_target' && 'Assign Labels' || 'Draft Release' }}
50+
assign-labels:
51+
name: Assign Labels
5552
runs-on: ubuntu-latest
5653
permissions:
57-
contents: write
5854
pull-requests: write
5955
steps:
60-
- name: ${{ github.event_name == 'pull_request_target' && 'Assign labels' || 'Update release draft' }}
61-
uses: release-drafter/release-drafter@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7.1.1
56+
- name: Assign labels
57+
uses: release-drafter/release-drafter/autolabeler@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7.1.1
6258
with:
63-
disable-releaser: ${{ github.event_name == 'pull_request_target' }}
64-
disable-autolabeler: ${{ github.event_name == 'push' }}
65-
env:
66-
GITHUB_TOKEN: ${{ github.token }}
59+
token: ${{ github.token }}

0 commit comments

Comments
 (0)