Skip to content

Commit b86ecef

Browse files
authored
repo sync
2 parents 27c7452 + 6882f6b commit b86ecef

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

content/actions/reference/events-that-trigger-workflows.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,8 @@ on:
572572

573573
{% data reusables.developer-site.pull_request_forked_repos_link %}
574574

575+
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %}
576+
575577
#### `pull_request_target`
576578

577579
This event is similar to `pull_request`, except that it runs in the context of the base repository of the pull request, rather than in the merge commit. This means that you can more safely make your secrets available to the workflows triggered by the pull request, because only workflows defined in the commit on the base repository are run. For example, this event allows you to create workflows that label and comment on pull requests, based on the contents of the event payload.
@@ -589,6 +591,8 @@ on: pull_request_target
589591
types: [assigned, opened, synchronize, reopened]
590592
```
591593

594+
{% endif %}
595+
592596
#### `push`
593597

594598
{% note %}
@@ -689,6 +693,8 @@ on:
689693
types: [started]
690694
```
691695

696+
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %}
697+
692698
#### `workflow_run`
693699

694700
{% data reusables.webhooks.workflow_run_desc %}
@@ -711,6 +717,8 @@ on:
711717
- requested
712718
```
713719

720+
{% endif %}
721+
714722
### Triggering new workflows using a personal access token
715723

716724
{% data reusables.github-actions.actions-do-not-trigger-workflows %} For more information, see "[Authenticating with the GITHUB_TOKEN](/actions/configuring-and-managing-workflows/authenticating-with-the-github_token)."

content/developers/webhooks-and-events/webhook-events-and-payloads.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ The event’s actor is the [user](/v3/users/) who starred a repository, and the
12871287
12881288
{{ webhookPayloadsForCurrentVersion.watch.started }}
12891289
1290-
{% if currentVersion == "free-pro-team@latest" %}
1290+
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.21" %}
12911291
### workflow_dispatch
12921292
12931293
This event occurs when someone triggers a workflow run on GitHub or sends a `POST` request to the "[Create a workflow dispatch event](/rest/reference/actions/#create-a-workflow-dispatch-event)" endpoint. For more information, see "[Events that trigger workflows](/actions/reference/events-that-trigger-workflows#workflow_dispatch)."
@@ -1301,6 +1301,7 @@ This event occurs when someone triggers a workflow run on GitHub or sends a `POS
13011301
{{ webhookPayloadsForCurrentVersion.workflow_dispatch }}
13021302
{% endif %}
13031303
1304+
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %}
13041305
### workflow_run
13051306
13061307
When a {% data variables.product.prodname_actions %} workflow run is requested or completed. For more information, see "[Events that trigger workflows](/actions/reference/events-that-trigger-workflows#workflow_run)."
@@ -1321,3 +1322,4 @@ Key | Type | Description
13211322
#### Webhook payload example
13221323
13231324
{{ webhookPayloadsForCurrentVersion.workflow_run }}
1325+
{% endif %}

0 commit comments

Comments
 (0)