Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
wbeuil committed Nov 11, 2020
1 parent b42401a commit 3592455
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
# Wait For GitHub Deployment

Wait for a GitHub deployment to complete and get its url
Wait for a GitHub deployment to complete and get its url on push and pull request. Only for Vercel based website. It's gonna by default take the `Preview` deployment when it's a pull request and the `Production` deployment when it's a push.

## Inputs

### `token`

**Required** This is your GitHub personal access token. Accessible via `${{ github.token }}` or `${{ secrets.GITHUB_TOKEN }}`.

### `timeout`

Maximum time in seconds to wait for the deployment. Default `120` seconds.

## Outputs

### `url`

The target URL of the deployment.

## Example usage

```yml
name: Test Workflow

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: wbeuil/wait-for-deployment@v1
id: deployment
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: echo "Deployed to ${{ steps.deployment.outputs.url }}"
```

0 comments on commit 3592455

Please sign in to comment.