Skip to content

Commit f1d6b32

Browse files
authored
[feat][workflow] Upgrade to new version of documentation bot apache#16027
1 parent 5ef895a commit f1d6b32

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

.github/workflows/ci-documentbot.yml

+18-14
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,37 @@
1717
# under the License.
1818
#
1919

20-
name: Auto Labeling
20+
name: Documentation Bot
2121

2222
on:
2323
pull_request_target :
2424
types:
2525
- opened
2626
- edited
2727
- labeled
28-
29-
30-
31-
# A GitHub token created for a PR coming from a fork doesn't have
32-
# 'admin' or 'write' permission (which is required to add labels)
33-
# To avoid this issue, you can use the `scheduled` event and run
34-
# this action on a certain interval.And check the label about the
35-
# document.
28+
- unlabeled
3629

3730
jobs:
38-
labeling:
31+
label:
3932
if: ${{ github.repository == 'apache/pulsar' }}
4033
permissions:
4134
pull-requests: write
4235
runs-on: ubuntu-latest
4336
steps:
44-
- uses: actions/checkout@v2
37+
- name: Checkout action
38+
uses: actions/checkout@v3
39+
with:
40+
repository: apache/pulsar-test-infra/docbot
41+
ref: master
4542

46-
- uses: apache/pulsar-test-infra/doc-label-check@master
43+
- name: Set up Go
44+
uses: actions/setup-go@v3
4745
with:
48-
github-token: ${{ secrets.GITHUB_TOKEN }}
49-
label-pattern: '- \[(.*?)\] ?`(.+?)`' # matches '- [x] `label`'
46+
go-version: 1.18
47+
48+
- name: Labeling
49+
uses: apache/pulsar-test-infra/docbot@master
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
LABEL_WATCH_LIST: 'doc,doc-required,doc-not-needed,doc-complete'
53+
LABEL_MISSING: 'doc-label-missing'

0 commit comments

Comments
 (0)