zattoo / deploy-status

GitHub Action to create Deployment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy Status

GitHub Action to create GitHub Deployment, see https://developer.github.com/v3/repos/deployments

environment

Inputs

token

string

Required. GitHub token

"queued" | "pending" | "in_progress" | "error" | "failure" | "success"

Required. Status of deploy

description

string

A short description of the status. The maximum description length is 140 characters

environment

string, default: live

Name for the target deployment environment. For example, "production", "release", or "qa"'

environment_url

string

Sets the URL for accessing your environment

Usage Example

name: Delivery
on:
  push:
    branches:
      - master
jobs:
  deploy:
    name: Deploy
    steps:
      - uses: actions/checkout@v4
      - run: # your delivery scripts
      - name: Success
        if: success()
        uses: zattoo/deploy-status@v1
        with:
          token: ${{ github.token }}
          environment: live
          environment_url: https://example.com
          state: success
      - name: Failure
        if: failure()
        uses: zattoo/deploy-status@v1
        with:
          token: ${{ github.token }}
          environment: live
          state: failure

About

GitHub Action to create Deployment

License:MIT License


Languages

Language:JavaScript 100.0%