Skip to content

This is a fork of https://github.com/deliverybot/deployment-status, because Deliverybot is no longer under active development.

License

Notifications You must be signed in to change notification settings

JasperLabs/deployment-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a fork of https://github.com/deliverybot/deployment-status, because Deliverybot is no longer under active development.

Status Action

Marks a deployment status for GitHub actions.

Parameters

Inputs

  • state: Deployment state. (default: pending)
  • description: Descriptive message about the deployment state.
  • log-url: Log url location.
  • token: Github repository token.
  • environment: Name for the target deployment environment, which can be changed when setting a deploy status.
  • environment-url: URL for accessing your environment.

Example

# .github/workflows/deploy.yml
name: Deploy

on: ['deployment']

jobs:
  deployment:

    runs-on: 'ubuntu-latest'

    steps:
    - uses: actions/checkout@v1
    - name: 'use node 8.x'
      uses: actions/setup-node@v1
      with:
        node-version: 8.x

    - name: 'deployment pending'
      uses: 'deliverybot/deployment-status@v1'
      with:
        state: 'pending'
        token: '${{ github.token }}'

    - name: 'deploy'
      run: |
        npm run deploy

    - name: 'deployment success'
      if: success()
      uses: 'deliverybot/deployment-status@v1'
      with:
        state: 'success'
        token: '${{ github.token }}'

    - name: 'deployment failure'
      if: failure()
      uses: 'deliverybot/deployment-status@v1'
      with:
        state: 'failure'
        token: '${{ github.token }}'

About

This is a fork of https://github.com/deliverybot/deployment-status, because Deliverybot is no longer under active development.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published