Skip to content

Commit c2b84b5

Browse files
authored
Merge pull request #45424 from github/repo-sync
Repo sync
2 parents d19b695 + 7b813bc commit c2b84b5

36 files changed

Lines changed: 197 additions & 122 deletions

File tree

.github/workflows/needs-sme-stale-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020

2121
steps:
22-
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
22+
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
2323
id: stale
2424
with:
2525
only-labels: needs SME

.github/workflows/no-response.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
github.actor != 'github-actions' &&
3434
!endsWith(github.actor, '[bot]')
3535
steps:
36-
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
36+
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
3737
id: stale
3838
with:
3939
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
if: github.repository == 'github/docs-internal'
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
24+
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
2525
id: stale
2626
with:
2727
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/triage-stale-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
pull-requests: write
2222

2323
steps:
24-
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
24+
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
2525
with:
2626
repo-token: ${{ secrets.GITHUB_TOKEN }}
2727
days-before-stale: 30
@@ -60,7 +60,7 @@ jobs:
6060
issues: write
6161
pull-requests: write
6262
steps:
63-
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
63+
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
6464
id: stale
6565
with:
6666
repo-token: ${{ secrets.GITHUB_TOKEN }}

content/actions/concepts/workflows-and-actions/reusing-workflow-configurations.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ contentType: concepts
2020

2121
Rather than copying and pasting from one workflow to another, you can make workflows reusable. You and anyone with access to the reusable workflow can then call the reusable workflow from another workflow.
2222

23+
{% ifversion copilot %}
24+
25+
Reusable workflows also complement {% data variables.copilot.agentic_workflows_short %}: an agentic workflow can call approved, deterministic reusable workflows rather than duplicating logic. For more information, see [AUTOTITLE](/copilot/how-tos/github-agentic-workflows/creating-github-agentic-workflows).
26+
27+
{% endif %}
28+
2329
Reusing workflows avoids duplication. This makes workflows easier to maintain and allows you to create new workflows more quickly by building on the work of others, just as you do with actions. Workflow reuse also promotes best practice by helping you to use workflows that are well designed, have already been tested, and have been proven to be effective. Your organization can build up a library of reusable workflows that can be centrally maintained.
2430

2531
The diagram below shows an in-progress workflow run that uses a reusable workflow.
@@ -77,6 +83,12 @@ If you use a commit SHA when referencing the reusable workflow, you can ensure t
7783

7884
For more information, see [AUTOTITLE](/actions/how-tos/reuse-automations/create-workflow-templates).
7985

86+
{% ifversion copilot %}
87+
88+
Organizations can also share and govern approved {% data variables.copilot.agentic_workflows_short %} templates alongside shared actions and reusable workflows. To create templates with {% data variables.copilot.github_agentic_workflows %}, see [AUTOTITLE](/copilot/how-tos/github-agentic-workflows/creating-github-agentic-workflows).
89+
90+
{% endif %}
91+
8092
{% ifversion fpt or ghec %}
8193

8294
## YAML anchors and aliases

content/actions/get-started/continuous-deployment.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ You can configure your CD workflow to run when an event occurs (for example, whe
3434

3535
{% data variables.product.prodname_actions %} provides features that give you more control over deployments. For example, you can use environments to require approval for a job to proceed, restrict which branches can trigger a workflow, or limit access to secrets. You can use concurrency to limit your CD pipeline to a maximum of one in-progress deployment{% ifversion actions-nga %}{% else %} and one pending deployment{% endif %}. For more information about these features, see [AUTOTITLE](/actions/how-tos/deploy/configure-and-manage-deployments/control-deployments) and [AUTOTITLE](/actions/how-tos/deploy/configure-and-manage-deployments/manage-environments).
3636

37+
{% ifversion copilot %}
38+
39+
> [!TIP]
40+
> You can use {% data variables.copilot.agentic_workflows_short %} for deployment preparation, such as release notes, change analysis, and rollout summaries, while keeping production deployments in deterministic {% data variables.product.prodname_actions %} workflows. For more information, see [AUTOTITLE](/copilot/how-tos/github-agentic-workflows/creating-github-agentic-workflows).
41+
42+
{% endif %}
43+
3744
## Workflow templates and third-party actions
3845

3946
{% data reusables.actions.cd-templates-actions %}

content/actions/get-started/understand-github-actions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ For more information{% ifversion fpt or ghec %} about self-hosted runners{% endi
114114

115115
{% data reusables.actions.onboarding-next-steps %}
116116

117+
{% ifversion copilot %}
118+
119+
> [!NOTE]
120+
> For automations that require contextual judgment about your repository's content, you can also author {% data variables.copilot.agentic_workflows_short %} in natural language instead of a traditional {% data variables.product.prodname_actions %} workflow. For more information, see [AUTOTITLE](/copilot/how-tos/github-agentic-workflows/quickstart) and [AUTOTITLE](/copilot/how-tos/github-agentic-workflows/creating-github-agentic-workflows).
121+
122+
{% endif %}
123+
117124
{% ifversion ghec or ghes %}
118125

119126
## Further reading

content/actions/how-tos/manage-workflow-runs/manually-run-a-workflow.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,4 @@ When using the REST API, you configure the `inputs` and `ref` as request body pa
9393
> You can define up to {% ifversion fpt or ghec %}25 {% else %}10 {% endif %} `inputs` for a `workflow_dispatch` event.
9494
9595
For more information about using the REST API, see [AUTOTITLE](/rest/actions/workflows#create-a-workflow-dispatch-event).
96+

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ Some events have multiple activity types. For these events, you can specify whic
2727
> [!NOTE]
2828
> Not all webhook events trigger workflows.
2929
30+
{% ifversion copilot %}
31+
32+
Like {% data variables.product.prodname_actions %} workflows, {% data variables.copilot.agentic_workflows_short %} can be triggered by repository events and schedules. For an example, see [AUTOTITLE](/copilot/how-tos/github-agentic-workflows/creating-github-agentic-workflows).
33+
34+
{% endif %}
35+
3036
## `branch_protection_rule`
3137

3238
| Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` |
@@ -376,7 +382,7 @@ on:
376382
> * {% data reusables.developer-site.multiple_activity_types %} Although only the `checks_requested` activity type is supported, specifying the activity type will keep your workflow specific if more activity types are added in the future. For information about each activity type, see [AUTOTITLE](/webhooks/webhook-events-and-payloads#merge_group). {% data reusables.developer-site.limit_workflow_to_activity_types %}
377383
> * {% data reusables.actions.merge-group-event-with-required-checks %}
378384

379-
Runs your workflow when a pull request is added to a merge queue, which adds the pull request to a merge group. For more information see [AUTOTITLE](/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/merging-a-pull-request-with-a-merge-queue).
385+
Runs your workflow when a pull request is added to a merge queue, which adds the pull request to a merge group. For more information see [AUTOTITLE](/pull-requests/how-tos/merge-and-close-pull-requests/merging-a-pull-request-with-a-merge-queue).
380386

381387
For example, you can run a workflow when the `checks_requested` activity has occurred.
382388

@@ -461,7 +467,7 @@ on:
461467

462468
Runs your workflow when activity on a pull request in the workflow's repository occurs. For example, if no activity types are specified, the workflow runs when a pull request is opened or reopened or when the head branch of the pull request is updated. For activity related to pull request reviews, pull request review comments, or pull request comments, use the [`pull_request_review`](#pull_request_review), [`pull_request_review_comment`](#pull_request_review_comment), or [`issue_comment`](#issue_comment) events instead. For information about the pull request APIs, see [AUTOTITLE](/graphql/reference/pulls#object-pullrequest) in the GraphQL API documentation or [AUTOTITLE](/rest/pulls).
463469

464-
Note that `GITHUB_SHA` for this event is the last merge commit of the pull request merge branch. If you want to get the commit ID for the last commit to the head branch of the pull request, use `github.event.pull_request.head.sha` instead. For more information about merge branches, see [AUTOTITLE](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#pull-request-refs-and-merge-branches).
470+
Note that `GITHUB_SHA` for this event is the last merge commit of the pull request merge branch. If you want to get the commit ID for the last commit to the head branch of the pull request, use `github.event.pull_request.head.sha` instead. For more information about merge branches, see [AUTOTITLE](/pull-requests/reference/pull-requests#pull-request-refs-and-merge-branches).
465471

466472
### How the merge branch affects your workflow
467473

@@ -1272,3 +1278,5 @@ jobs:
12721278
body: 'Thank you for the PR!'
12731279
});
12741280
```
1281+
1282+

content/actions/reference/workflows-and-actions/reusing-workflow-configurations.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ contentType: reference
1616

1717
## Reusable workflows
1818

19-
Reference information for reusable workflows.
19+
This article provides reference information for reusable workflows and workflow templates, including access rules, limitations, supported keywords, and runner behavior.
2020

21+
{% ifversion copilot %}
22+
23+
You can centralize deterministic, repeatable logic in reusable workflows, and use {% data variables.copilot.agentic_workflows_short %} for tasks that require contextual judgment about your repository's content such as analysis, summaries, and recommendations. For more information, see [AUTOTITLE](/copilot/how-tos/github-agentic-workflows/creating-github-agentic-workflows).
24+
25+
{% endif %}
2126
### Access to reusable workflows
2227

2328
A reusable workflow can be used by another workflow if any of the following is true:
@@ -244,3 +249,4 @@ jobs:
244249
```
245250

246251
{% endif %}
252+

0 commit comments

Comments
 (0)