This action blocks until a deployment is ready for your push, and outputs its URL so that you can run tests and other checks against a live site without running it in Actions.
name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: RoyalHaskoningDHV/[email protected]
id: deployment
with:
token: ${{ github.token }}
environment: Preview
- run: echo "Deployed to: ${{ steps.deployment.outputs.url }}"
This is your GitHub access token, typically accessible via ${{ github.token }}
.
This is the deployment environment to target.
The SHA of the commit being deployed.
The number of seconds after which to give up with an error. Default: 30.
The number of seconds to wait between polls to the deployments API. Default: 5.
The target URL of the deployment, if found.
The id of the deployment.