1
0
mirror of synced 2025-12-30 21:02:34 -05:00

Actions context article revamp (#23628)

This commit is contained in:
Lucas Costi
2022-01-18 10:53:42 +10:00
committed by GitHub
parent 4b7ed930ed
commit 07095e96cc
10 changed files with 690 additions and 196 deletions

View File

@@ -0,0 +1,19 @@
This example workflow uses the [labeler action](https://github.com/actions/labeler), which requires the `GITHUB_TOKEN` as the value for the `repo-token` input parameter:
```yaml{:copy}
name: Pull request labeler
on: [ pull_request_target ]
{% ifversion fpt or ghes > 3.1 or ghae or ghec %}permissions:
contents: read
pull-requests: write
{% endif %}
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
```