Skip to content
This repository has been archived by the owner on Oct 21, 2019. It is now read-only.

GitHub action that implements octokit.repos.createDeployment

License

Notifications You must be signed in to change notification settings

maxkomarychev/create-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create deployment

This action is deprecated in favor of https://github.com/maxkomarychev/oction-create-deployment

Create deployment

This action is a wrapper for one of octokit's methods.

Original docs can be found here: https://octokit.github.io/rest.js/#octokit-routes-repos-create-deployment

Quick start

- uses: maxkomarychev/create-deployment@v0.5.2
  id: my_step_id
  with:
    token: ${{ secrets.GITHUB_TOKEN }}
    ref: master
- name: Print outputs
  run: |
    echo ${{ steps.my_step_id.outputs.id }}

Inputs

Name Is required Description
token true A token to perform API calls
ref true The ref to deploy. This can be a branch, tag, or SHA.
task false Specifies a task to execute (e.g., deploy or deploy:migrations).
auto_merge false Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.
environment false Name for the target deployment environment (e.g., production, staging, qa).
description false Short description of the deployment.
transient_environment false Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future
production_environment Specifies if the given environment is one that end-users directly interact with.
required_contexts false The status contexts to verify against commit status checks. Comma separated list, empty string or "<>".

Outputs

Name Description
id Id of created deployment