Skip to content

zattoo/deploy-status

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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