1
0
mirror of synced 2026-01-07 00:01:39 -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 %}
```

View File

@@ -1 +1 @@
A unique number for each run within a repository. This number does not change if you re-run the workflow run.
A unique number for each workflow run within a repository. This number does not change if you re-run the workflow run.

View File

@@ -0,0 +1,5 @@
{% warning %}
**Warning:** {% data variables.product.prodname_dotcom %} automatically redacts secrets printed to the log, but you should avoid printing secrets to the log intentionally.
{% endwarning %}