Skip to content

Commit 4f642b2

Browse files
authored
Merge pull request #40346 from github/repo-sync
Repo sync
2 parents 02501c9 + 0b0b308 commit 4f642b2

File tree

65 files changed

+818
-554
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+818
-554
lines changed

.github/actions/get-changed-files/get-changed-files.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ git fetch --depth=1 origin main
1818
git fetch --depth=1 origin ${INPUT_HEAD:-HEAD}
1919

2020
# Get diff with status information
21+
# Find the merge-base (common ancestor) instead of using origin/main directly
2122
echo "__ running git diff with status __"
22-
DIFF_OUTPUT=$(git diff --name-status origin/main origin/${INPUT_HEAD:-HEAD})
23+
DIFF_OUTPUT=$(git diff --name-status origin/main...origin/${INPUT_HEAD:-HEAD})
2324

2425
# Function to extract files by pattern from diff output
2526
extract_files() {

.github/workflows/article-api-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818

1919
jobs:
2020
check-content-linter-rules-docs:
21-
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
21+
runs-on: ubuntu-latest
2222
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
2323
steps:
2424
- name: Checkout

.github/workflows/content-lint-markdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ permissions:
2020
jobs:
2121
lint-content:
2222
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
23-
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
23+
runs-on: ubuntu-latest
2424
steps:
2525
- name: Check out repo
2626
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

.github/workflows/content-linter-rules-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121

2222
jobs:
2323
check-content-linter-rules-docs:
24-
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
24+
runs-on: ubuntu-latest
2525
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
2626
steps:
2727
- name: Checkout

.github/workflows/count-translation-corruptions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121
jobs:
2222
count-translation-corruptions:
2323
if: github.repository == 'github/docs-internal'
24-
runs-on: ubuntu-20.04-xl
24+
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout English repo
2727
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

.github/workflows/generate-code-scanning-query-lists.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ permissions:
2929
jobs:
3030
generate-query-lists:
3131
if: github.repository == 'github/docs-internal'
32-
runs-on: ubuntu-20.04-xl
32+
runs-on: ubuntu-latest
3333
steps:
3434
- name: Checkout repository code
3535
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

.github/workflows/headless-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ env:
2525
jobs:
2626
playwright-tests:
2727
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
28-
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
28+
runs-on: ubuntu-latest
2929
strategy:
3030
# When we're comfortable a11y tests aren't generating false positives and helping,
3131
# let's remove the matrix and just run playwright in a single job.

.github/workflows/index-autocomplete-search.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ permissions:
2020
jobs:
2121
index-autocomplete-elasticsearch:
2222
if: ${{ github.repository == 'github/docs-internal' }}
23-
runs-on: ubuntu-20.04-xl
23+
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout
2626
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

.github/workflows/index-general-search-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ env:
3333

3434
jobs:
3535
dryRunElasticsearchIndexes:
36-
runs-on: ubuntu-20.04-xl
36+
runs-on: ubuntu-latest
3737
if: github.repository == 'github/docs-internal'
3838
steps:
3939
- name: Check out repo

.github/workflows/index-general-search.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
needs: figureOutMatrix
9999
name: Update indexes
100100
if: ${{ github.repository == 'github/docs-internal' && needs.figureOutMatrix.outputs.matrix != '[]' }}
101-
runs-on: ubuntu-20.04-xl
101+
runs-on: ubuntu-latest
102102
strategy:
103103
fail-fast: false
104104
# When it's only English (i.e. a simple array of ['en']), this value

0 commit comments

Comments
 (0)