-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" | ||
``` |