Update example YAML in README

as seen in #7
This commit is contained in:
Olaf Alders 2019-10-01 08:27:36 -04:00
commit c73090c30e

View file

@ -19,9 +19,15 @@ If a label doesn't need a description, leave out the `description` field of the
This action only needs the GITHUB_TOKEN secret as it interacts with the GitHub API to modify labels. The action can be used as such: This action only needs the GITHUB_TOKEN secret as it interacts with the GitHub API to modify labels. The action can be used as such:
```yaml ```yaml
on: issues
name: Create Default Labels
jobs:
labels:
name: DefaultLabelsActions
runs-on: ubuntu-latest
steps: steps:
- name: "Check & Modify Labels" - uses: actions/checkout@1.0.0
uses: lannonbr/issue-label-manager-action@2.0.0 - uses: lannonbr/issue-label-manager-action@master
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
``` ```