Skip to content

Commit 6918ee4

Browse files
authored
docs: Add example of actions/labeler (#331)
#326
1 parent 291ff12 commit 6918ee4

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,23 @@ Default is `${{ github.token }}`
260260
>
261261
> When you use the repository's `GITHUB_TOKEN` to perform tasks on behalf of the GitHub Actions app, events triggered by the `GITHUB_TOKEN` will not create a new workflow run. This prevents you from accidentally creating recursive workflow runs. For example, if a workflow run pushes code using the repository's `GITHUB_TOKEN`, a new workflow will not run even when the repository contains a workflow configured to run when push events occur.
262262

263-
You need to provide a personal access token to an auto label GitHub Actions or GitHub Bot like `actions/labeler`.
263+
You need to provide a personal access token to an auto label GitHub Actions or GitHub Bot like [actions/labeler](https://github.com/actions/labeler).
264+
265+
```yaml
266+
# .github/workflows/labeler.yml
267+
name: "Pull Request Labeler"
268+
269+
on:
270+
- pull_request_target
271+
272+
jobs:
273+
triage:
274+
runs-on: ubuntu-18.04
275+
steps:
276+
- uses: actions/labeler@v3
277+
with:
278+
repo-token: "${{ secrets.GH_PAT }}"
279+
```
264280

265281
<div align="right">
266282
<a href="#table-of-contents">Back to TOC ☝️</a>

0 commit comments

Comments
 (0)