Skip to content

sadayuki-matsuno/github-deployment-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Development Status Action

https://help.github.com/ja/actions/building-actions/creating-a-javascript-action Marks a deployment status for GitHub actions.

Parameters

Inputs

  • deployment-id: Deployment id. (default: ${{github.event.deployment.id}})
  • state: Deployment status. (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: 'deploy'
      run: |
        npm run deploy

    - name: 'change deployment status'
      uses: 'sadayuki-matsuno/github-deployment-status@v2'
      with:
        deployment-id: ${{github.event.deployment.id}}
        state: '${{ job.state }}'
        token: '${{ github.token }}'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published