add rest api for enabling/disabling workflows (#15843)

This commit is contained in:
Rachael Sewell 2020-10-01 17:03:01 -07:00 коммит произвёл GitHub
Родитель aa3a4edb62
Коммит 37a0570917
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -1,6 +1,6 @@
---
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 %}'
versions:
free-pro-team: '*'
@ -10,7 +10,7 @@ versions:
{% data reusables.actions.enterprise-beta %}
{% 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:

6
package-lock.json сгенерированный
Просмотреть файл

@ -1144,9 +1144,9 @@
}
},
"@github/rest-api-operations": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@github/rest-api-operations/-/rest-api-operations-2.0.2.tgz",
"integrity": "sha512-owQDsivpRxzfu007Ghi2hZlclWssu0kmt6RNSb8tC7t/slEoaCt0x0aOG/znG8AMidUgt0glWpuZsIoiDIo7Vg=="
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@github/rest-api-operations/-/rest-api-operations-2.1.0.tgz",
"integrity": "sha512-F9E4WIpe8LtDBI9vD8ZuAiaL6DaKv8wZQ2Qkay3hkbJZB4ehxCcgoDmGQODNQEb1u624gbnAOzTG2hrVSuZNUA=="
},
"@hapi/address": {
"version": "2.1.4",

Просмотреть файл

@ -15,7 +15,7 @@
"@github-docs/data-directory": "^1.2.0",
"@github-docs/frontmatter": "^1.3.1",
"@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",
"@primer/css": "^15.1.0",
"@primer/octicons": "^11.0.0",