Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yinlinchen committed Sep 10, 2020
1 parent 50a06c7 commit f54acfa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ AWS Amplify pull request preview currently only supports private github reposito
## Getting Started
You can include the action in your workflow as `actions/[email protected]`.

Example:
* Example: Deploy a PR preview after a reviewer is assigned.

```yaml
name: 'Amplify PR Preview'
Expand Down Expand Up @@ -43,3 +43,11 @@ jobs:
AWS_REGION: 'us-east-1'
```
* Advanced configuration: Deploy a PR preview after a reviewer is assigned and the PR is labeled with ```Ready for review```

```
jobs:
deploy:
if: contains(github.event.pull_request.labels.*.name, 'Ready for review')
runs-on: ubuntu-latest
```

0 comments on commit f54acfa

Please sign in to comment.