Skip to content

RoyalHaskoningDHV/wait-for-deployment-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wait for deployment GitHub Action

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.

Setup

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 }}"

Inputs

token

This is your GitHub access token, typically accessible via ${{ github.token }}.

environment

This is the deployment environment to target.

sha

The SHA of the commit being deployed.

timeout

The number of seconds after which to give up with an error. Default: 30.

interval

The number of seconds to wait between polls to the deployments API. Default: 5.

Outputs

url

The target URL of the deployment, if found.

id

The id of the deployment.

About

⚠️ If you're looking at this, you probably want to use "deployment_status" workflows instead!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%