You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by li...@apache.org on 2022/06/20 05:00:20 UTC
[pulsar-test-infra] branch master updated: docs: update example workflow file (#48)
This is an automated email from the ASF dual-hosted git repository.
liuyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-test-infra.git
The following commit(s) were added to refs/heads/master by this push:
new 67489a0 docs: update example workflow file (#48)
67489a0 is described below
commit 67489a09664d7882a7be9e275a5cd6aee6e42c9d
Author: Max Xu <ma...@gmail.com>
AuthorDate: Mon Jun 20 13:00:16 2022 +0800
docs: update example workflow file (#48)
---
docbot/README.md | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/docbot/README.md b/docbot/README.md
index 622ee20..f819e28 100644
--- a/docbot/README.md
+++ b/docbot/README.md
@@ -4,7 +4,7 @@ Automatically label pull requests based on the checked task list.
## Usage
-Create a workflow `.github/workflows/ci-docbot.yml` with below content:
+Create a workflow `.github/workflows/ci-documentbot.yml` with below content:
```yaml
name: Documentation Bot
@@ -17,8 +17,13 @@ on:
- labeled
- unlabeled
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
label:
+ if: ${{ github.repository == 'apache/pulsar' }}
permissions:
pull-requests: write
runs-on: ubuntu-latest
@@ -26,7 +31,7 @@ jobs:
- name: Checkout action
uses: actions/checkout@v3
with:
- repository: maxsxu/action-labeler
+ repository: apache/pulsar-test-infra
ref: master
- name: Set up Go
@@ -35,10 +40,10 @@ jobs:
go-version: 1.18
- name: Labeling
- uses: maxsxu/action-labeler@master
+ uses: ./docbot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- LABEL_WATCH_LIST: 'doc,doc-required,doc-not-needed,doc-complete,doc-label-missing'
+ LABEL_WATCH_LIST: 'doc,doc-required,doc-not-needed,doc-complete'
LABEL_MISSING: 'doc-label-missing'
```