add rest api for enabling/disabling workflows (#15843)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Disabling and enabling a workflow
|
title: Disabling and enabling a workflow
|
||||||
intro: 'You can temporarily disable and re-enable an individual workflow on {% data variables.product.prodname_dotcom %}.'
|
intro: You can disable and re-enable a workflow using {% data variables.product.prodname_dotcom %} or the REST API.
|
||||||
product: '{% data reusables.gated-features.actions %}'
|
product: '{% data reusables.gated-features.actions %}'
|
||||||
versions:
|
versions:
|
||||||
free-pro-team: '*'
|
free-pro-team: '*'
|
||||||
@@ -10,7 +10,7 @@ versions:
|
|||||||
{% data reusables.actions.enterprise-beta %}
|
{% data reusables.actions.enterprise-beta %}
|
||||||
{% data reusables.actions.enterprise-github-hosted-runners %}
|
{% data reusables.actions.enterprise-github-hosted-runners %}
|
||||||
|
|
||||||
Disabling a workflow allows you to stop a workflow from being triggered without having to delete the file from the repo. You can easily re-enable the workflow again on {% data variables.product.prodname_dotcom %}.
|
Disabling a workflow allows you to stop a workflow from being triggered without having to delete the file from the repo. You can easily re-enable the workflow again on {% data variables.product.prodname_dotcom %}. You can also disable and enable a workflow using the REST API. For more information, see the "[Actions REST API](/rest/reference/actions#workflows)."
|
||||||
|
|
||||||
Temporarily disabling a workflow can be useful in many scenarios. These are a few examples where disabling a workflow might be helpful:
|
Temporarily disabling a workflow can be useful in many scenarios. These are a few examples where disabling a workflow might be helpful:
|
||||||
|
|
||||||
|
|||||||
6
package-lock.json
generated
6
package-lock.json
generated
@@ -1144,9 +1144,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@github/rest-api-operations": {
|
"@github/rest-api-operations": {
|
||||||
"version": "2.0.2",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@github/rest-api-operations/-/rest-api-operations-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@github/rest-api-operations/-/rest-api-operations-2.1.0.tgz",
|
||||||
"integrity": "sha512-owQDsivpRxzfu007Ghi2hZlclWssu0kmt6RNSb8tC7t/slEoaCt0x0aOG/znG8AMidUgt0glWpuZsIoiDIo7Vg=="
|
"integrity": "sha512-F9E4WIpe8LtDBI9vD8ZuAiaL6DaKv8wZQ2Qkay3hkbJZB4ehxCcgoDmGQODNQEb1u624gbnAOzTG2hrVSuZNUA=="
|
||||||
},
|
},
|
||||||
"@hapi/address": {
|
"@hapi/address": {
|
||||||
"version": "2.1.4",
|
"version": "2.1.4",
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
"@github-docs/data-directory": "^1.2.0",
|
"@github-docs/data-directory": "^1.2.0",
|
||||||
"@github-docs/frontmatter": "^1.3.1",
|
"@github-docs/frontmatter": "^1.3.1",
|
||||||
"@github-docs/render-content": "^5.0.0",
|
"@github-docs/render-content": "^5.0.0",
|
||||||
"@github/rest-api-operations": "^2.0.2",
|
"@github/rest-api-operations": "^2.1.0",
|
||||||
"@octokit/rest": "^16.38.1",
|
"@octokit/rest": "^16.38.1",
|
||||||
"@primer/css": "^15.1.0",
|
"@primer/css": "^15.1.0",
|
||||||
"@primer/octicons": "^11.0.0",
|
"@primer/octicons": "^11.0.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user