1
0
mirror of synced 2025-12-30 03:01:36 -05:00
Files
docs/data/reusables/actions/github_token-input-example.md
Lucas Costi b49c768777 Version actions for GHES, use reusables (#26004)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Sarah Edwards <skedwards88@github.com>
2022-04-01 09:36:17 +10:00

20 lines
558 B
Markdown

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: {% data reusables.actions.action-labeler %}
with:
repo-token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
```