Skip to content

Workflow Toggle

Actions
GitHub Action to Enable/Disable GitHub Actions Workflows
v2.0.1
Latest
Star (1)

Tags

 (1)

Toggle Workflow

This action allows you to enable/disable a GitHub Actions Workflow.

Build Tests
build-test Coverage Status

Documentation

Usage

- name: Toggle Workflow
  uses: StephenMP/workflow-toggle@v2
  with:
    token: ${{ secrets.YOUR_GITHUB_TOKEN }}
    workflow_id: YourWorkflow.yaml
    action: enable # Or disable
    owner: YourOrgOrUser
    repo: YourRepo

Inputs

Input Required Default Description
token yes A GitHub access token with the "workflow" scope
workflow_id yes The workflow file name or the workflow ID
action yes Either "enable" or "disable" to enable/disable the workflow
owner no The owner of the repository calling the action The repo owner (defaults to owner of the running action)
repo no The repository calling the action The repo with the workflow to disable (defaults to repo of the running action)

Workflow Toggle is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

GitHub Action to Enable/Disable GitHub Actions Workflows
v2.0.1
Latest

Tags

 (1)

Workflow Toggle is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.