Skip to content

Commit 4f0870f

Browse files
authored
chore(dev): update release-drafter usage (#410)
- [x] remove unused release-drafter config - [x] update permissions for jobs that invoke reusable release-drafter workflows - [x] switch labeler workflow to use separate reusable workflow refs: - cpp-linter/.github#71 - cpp-linter/.github#74
1 parent 794df87 commit 4f0870f

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/release-drafter.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/labeler.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
name: PR Autolabeler
1+
name: PR Auto-labeler
22

33
on:
4-
# pull_request event is required for autolabeler
4+
# pull_request event is required for auto-labeler
55
pull_request:
66
types: [opened, reopened, synchronize]
77

8+
permissions: {}
9+
810
jobs:
911
draft-release:
10-
uses: cpp-linter/.github/.github/workflows/release-drafter.yml@main
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
uses: cpp-linter/.github/.github/workflows/pr-labeler.yml@main

.github/workflows/release-drafter.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
- "main"
77
workflow_dispatch:
88

9+
permissions: {}
10+
911
jobs:
1012
draft-release:
13+
permissions:
14+
contents: write
15+
pull-requests: read
1116
uses: cpp-linter/.github/.github/workflows/release-drafter.yml@main

0 commit comments

Comments
 (0)