forked from awsdocs/aws-doc-sdk-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.36 KB
/
label-linter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: "Lint Labels"
on:
pull_request_target:
workflow_dispatch:
jobs:
label-linter:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
# The Add Labels workflow adds a label to pull requests
# based on the files included in the proposed change.
#
# To use this workflow, you must set up and configure
# rules in a .github/label-ruleset.yml file
#
# For more information, see:
# https://github.com/actions/labeler
-
name: Add Labels
uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/label-ruleset.yml
# The Audit Labels workflow creates, renames, updates
# or deletes labels based on a list of allowed labels.
#
# To use this workflow, you must set up and configure
# labels in a .github/allowed-labels.yml file
#
# For more information, see:
# https://github.com/crazy-max/ghaction-github-labeler
-
name: Audit Labels
if: success()
uses: crazy-max/ghaction-github-labeler@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/allowed-labels.yml
skip-delete: false
dry-run: false