Skip to content

justacodename/deployment-status

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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@v3
    - uses: actions/setup-node@v3
      with:
        node-version: 16

    - name: 'deployment pending'
      uses: 'justacodename/deployment-status@v2'
      with:
        state: 'pending'

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

    - name: 'deployment success'
      if: success()
      uses: 'justacodename/deployment-status@v2'
      with:
        state: 'success'

    - name: 'deployment failure'
      if: failure()
      uses: 'justacodename/deployment-status@v2'
      with:
        state: 'failure'

About

GitHub action for updating deployments with status events.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%