8000 GitHub - kamaz/deploy-action: Wrapper around GitHub Deployment api for GitHub actions
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kamaz/deploy-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

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
< 8000 a title=".gitignore" aria-label=".gitignore, (File)" class="Link--primary" href="/kamaz/deploy-action/blob/master/.gitignore" data-discover="true">.gitignore
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deploy action

Action is a wrapper around deployment api.

For detail documentation and explanation refer to:

Inputs

Input Optional Default Description
token No - github token
deploymentId Yes Empty
state Yes pending
environmentUrl Yes -
requiredContext Yes Empty Format 'value1,value2'
autoMerge Yes false
environment Yes pr-number or qa for pull request it default to pr-[number] for push it default to qa
transientEnvironment Yes false
productionEnvironment Yes false

Outputs

Output Value
deploymentId a deployment number that can be used to set status later

Example usage

- uses: kamaz/deploy-action@v1.0
  id: deployment
  with:
    token: ${{ secrets.GITHUB_TOKEN }}
    environmentUrl: ${{ format('https://pr-{0}.example.com', github.event.number) }}
#   
# Your deployment steps
# 
- uses: kamaz/deploy-action@v1.0
  if: success()
  with:
    deploymentId: ${{ steps.deployment.outputs.deploymentId }}
    token: ${{ secrets.GITHUB_TOKEN }}
    environmentUrl: ${{ format('https://pr-{0}.example.com', github.event.number) }}
    state: success
- uses: kamaz/deploy-action@v1.0
  if: failure()
  with:
    deploymentId: ${{ steps.deployment.outputs.deploymentId }}
    token: ${{ secrets.GITHUB_TOKEN }}
    environmentUrl: ${{ format('https://pr-{0}.example.com', github.event.number) }}
    state: failure
0