Update example YAML in README (#11)

* Update example YAML in README

as seen in #7

* Update README.md

Pin version of issue-label-manager-action

Co-Authored-By: Benjamin Lannon <benjamin@lannonbr.com>
This commit is contained in:
Olaf Alders 2019-10-01 09:40:30 -04:00 committed by Benjamin Lannon
commit 2e07e1d2e6

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:
```yaml
on: issues
name: Create Default Labels
jobs:
labels:
name: DefaultLabelsActions
runs-on: ubuntu-latest
steps:
- name: "Check & Modify Labels"
uses: lannonbr/issue-label-manager-action@2.0.0
- uses: actions/checkout@1.0.0
- uses: lannonbr/issue-label-manager-action@2.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```