Skip to content

Commit 8511830

Browse files
authored
Merge pull request #44680 from github/repo-sync
Repo sync
2 parents 60fbc6c + 9b7f600 commit 8511830

12 files changed

Lines changed: 277 additions & 91 deletions

File tree

.github/actions/clone-translations/action.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,56 +11,56 @@ runs:
1111
using: 'composite'
1212
steps:
1313
- name: Clone Spanish
14-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
14+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1515
with:
1616
repository: github/docs-internal.es-es
1717
token: ${{ inputs.token }}
1818
path: translations/es-es
1919

2020
- name: Clone Japanese
21-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
21+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2222
with:
2323
repository: github/docs-internal.ja-jp
2424
token: ${{ inputs.token }}
2525
path: translations/ja-jp
2626

2727
- name: Clone Portuguese
28-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
28+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2929
with:
3030
repository: github/docs-internal.pt-br
3131
token: ${{ inputs.token }}
3232
path: translations/pt-br
3333

3434
- name: Clone Simplified Chinese
35-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
35+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3636
with:
3737
repository: github/docs-internal.zh-cn
3838
token: ${{ inputs.token }}
3939
path: translations/zh-cn
4040

4141
- name: Clone Russian
42-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
42+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4343
with:
4444
repository: github/docs-internal.ru-ru
4545
token: ${{ inputs.token }}
4646
path: translations/ru-ru
4747

4848
- name: Clone French
49-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
49+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5050
with:
5151
repository: github/docs-internal.fr-fr
5252
token: ${{ inputs.token }}
5353
path: translations/fr-fr
5454

5555
- name: Clone Korean
56-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
56+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5757
with:
5858
repository: github/docs-internal.ko-kr
5959
token: ${{ inputs.token }}
6060
path: translations/ko-kr
6161

6262
- name: Clone German
63-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
63+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
6464
with:
6565
repository: github/docs-internal.de-de
6666
token: ${{ inputs.token }}

.github/actions/get-docs-early-access/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
run: npm run what-docs-early-access-branch
2020

2121
- name: Clone
22-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
22+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2323
with:
2424
repository: github/docs-early-access
2525
token: ${{ inputs.token }}

.github/workflows/enterprise-dates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464

6565
- if: ${{ steps.create-pull-request.outputs.pull-request-number }}
6666
name: Approve
67-
uses: juliangruber/approve-pull-request-action@dcc4effb325c0b503408619918d56e40653dcc91
67+
uses: juliangruber/approve-pull-request-action@68fcc9a5a73b5641cadf757cf99d73720dcb05d0 # v2.1.0
6868
with:
6969
github-token: ${{ secrets.GITHUB_TOKEN }}
7070
number: ${{ steps.create-pull-request.outputs.pull-request-number }}

.github/workflows/link-check-on-pr.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,20 @@ jobs:
3636

3737
- uses: ./.github/actions/node-npm-setup
3838

39+
- name: Generate GitHub App token
40+
if: ${{ github.repository == 'github/docs-internal' }}
41+
id: app-token
42+
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
43+
with:
44+
app-id: ${{ secrets.DOCS_BOT_APP_ID }}
45+
private-key: ${{ secrets.DOCS_BOT_APP_PRIVATE_KEY }}
46+
owner: github
47+
repositories: docs-early-access
48+
3949
- uses: ./.github/actions/get-docs-early-access
4050
if: ${{ github.repository == 'github/docs-internal' }}
4151
with:
42-
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
52+
token: ${{ steps.app-token.outputs.token }}
4353

4454
- name: Get changed files
4555
id: changed-files
@@ -55,7 +65,7 @@ jobs:
5565
FILES_CHANGED: ${{ steps.changed-files.outputs.all_changed_files }}
5666
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5767
ACTION_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
58-
SHOULD_COMMENT: ${{ secrets.DOCS_BOT_PAT_BASE != '' }}
68+
SHOULD_COMMENT: ${{ secrets.DOCS_BOT_APP_ID != '' }}
5969
FAIL_ON_FLAW: true
6070
ENABLED_LANGUAGES: en
6171
run: npm run check-links-pr

.github/workflows/move-ready-to-merge-pr.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,21 @@ jobs:
2323
}}
2424
runs-on: ubuntu-latest
2525
steps:
26-
- name: move PR
27-
uses: alex-page/github-project-automation-plus@303f24a24c67ce7adf565a07e96720faf126fe36
26+
- name: Add PR to the open source board
27+
uses: actions/add-to-project@5afcf98fcd03f1c2f92c3c83f58ae24323cc57fd # v2.0.0
2828
with:
29-
project: Docs open source board
30-
column: Triage
31-
repo-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
29+
project-url: https://github.com/orgs/github/projects/2936
30+
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
31+
32+
- name: Move PR to Triage on the open source board
33+
uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 # v4
34+
with:
35+
github_token: ${{ secrets.DOCS_BOT_PAT_BASE }}
36+
organization: github
37+
project_number: 2936
38+
content_id: ${{ github.event.pull_request.node_id }}
39+
field: Status
40+
value: Triage
3241

3342
- name: Check out repo
3443
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

.github/workflows/sync-graphql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767

6868
- if: ${{ steps.create-pull-request.outputs.pull-request-number }}
6969
name: Approve
70-
uses: juliangruber/approve-pull-request-action@dcc4effb325c0b503408619918d56e40653dcc91
70+
uses: juliangruber/approve-pull-request-action@68fcc9a5a73b5641cadf757cf99d73720dcb05d0 # v2.1.0
7171
with:
7272
github-token: ${{ secrets.GITHUB_TOKEN }}
7373
number: ${{ steps.create-pull-request.outputs.pull-request-number }}

.github/workflows/test-changed-content.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,20 @@ jobs:
3434

3535
- uses: ./.github/actions/node-npm-setup
3636

37+
- name: Generate GitHub App token
38+
if: ${{ github.repository == 'github/docs-internal' }}
39+
id: app-token
40+
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
41+
with:
42+
app-id: ${{ secrets.DOCS_BOT_APP_ID }}
43+
private-key: ${{ secrets.DOCS_BOT_APP_PRIVATE_KEY }}
44+
owner: github
45+
repositories: docs-early-access
46+
3747
- uses: ./.github/actions/get-docs-early-access
3848
if: ${{ github.repository == 'github/docs-internal' }}
3949
with:
40-
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
50+
token: ${{ steps.app-token.outputs.token }}
4151

4252
- uses: ./.github/actions/cache-nextjs
4353

.github/workflows/test.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,20 @@ jobs:
9595

9696
- uses: ./.github/actions/node-npm-setup
9797

98+
- name: Generate GitHub App token
99+
if: ${{ github.repository == 'github/docs-internal' }}
100+
id: app-token
101+
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
102+
with:
103+
app-id: ${{ secrets.DOCS_BOT_APP_ID }}
104+
private-key: ${{ secrets.DOCS_BOT_APP_PRIVATE_KEY }}
105+
owner: github
106+
repositories: docs-early-access,docs-internal.es-es,docs-internal.ja-jp,docs-internal.pt-br,docs-internal.zh-cn,docs-internal.ru-ru,docs-internal.fr-fr,docs-internal.ko-kr,docs-internal.de-de
107+
98108
- uses: ./.github/actions/get-docs-early-access
99109
if: ${{ github.repository == 'github/docs-internal' }}
100110
with:
101-
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
111+
token: ${{ steps.app-token.outputs.token }}
102112

103113
- name: Check the test fixture data (if applicable)
104114
if: ${{ matrix.name == 'fixtures' }}
@@ -123,7 +133,7 @@ jobs:
123133
if: ${{ matrix.name == 'languages' }}
124134
uses: ./.github/actions/clone-translations
125135
with:
126-
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
136+
token: ${{ steps.app-token.outputs.token }}
127137

128138
- name: Gather files changed
129139
if: ${{ matrix.name == 'content-linter' }}

.github/workflows/triage-unallowed-contributions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2727

2828
- name: Get files changed
29-
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d
29+
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
3030
id: filter
3131
with:
3232
# Base branch used to get changed files

content/actions/how-tos/manage-runners/larger-runners/use-custom-images.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,24 @@ jobs:
9494
# Add any steps to download and setup any dependencies here
9595
```
9696

97+
### Conditionals
98+
99+
The `snapshot` keyword supports conditional execution using the `if` keyword around the snapshot mapping. You can use conditions to control when an image snapshot is created. For example, the following job skips image creation for tag builds.
100+
101+
```yaml
102+
jobs:
103+
build:
104+
runs-on: my-image-generation-runner
105+
snapshot:
106+
if: {% raw %}${{ ! startsWith(github.ref, 'refs/tags/') }}{% endraw %}
107+
image-name: my-custom-image
108+
version: 2.*
109+
steps:
110+
# Add any steps to download and setup any dependencies here
111+
```
112+
113+
For more information about the `if` keyword, see [AUTOTITLE](/actions/how-tos/write-workflows/choose-when-workflows-run/control-jobs-with-conditions).
114+
97115
## Versioning
98116

99117
When you generate custom images, {% data variables.product.github %} automatically assigns version numbers to help you manage updates and track image history.

0 commit comments

Comments
 (0)