Skip to content

Commit 989271c

Browse files
authored
Merge pull request #43283 from github/repo-sync
Repo sync
2 parents c5a427c + 821f3a9 commit 989271c

17 files changed

+1713
-356
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
# to native line endings on checkout.
55
*.md text diff=markdown
66
*.json.br filter=lfs diff=lfs merge=lfs -text
7+
.github/workflows/*.lock.yml linguist-generated=true merge=ours

.github/actions/get-changed-files/action.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

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

Lines changed: 0 additions & 204 deletions
This file was deleted.

.github/aw/actions-lock.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"entries": {
3+
"actions/github-script@v8": {
4+
"repo": "actions/github-script",
5+
"version": "v8",
6+
"sha": "ed597411d8f924073f98dfc5c65a23a2325f34cd"
7+
},
8+
"github/gh-aw/actions/setup@v0.57.0": {
9+
"repo": "github/gh-aw/actions/setup",
10+
"version": "v0.57.0",
11+
"sha": "902845080df391b1f71845fcd7c303dfc0ac90b3"
12+
}
13+
}
14+
}

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

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,23 @@ jobs:
3030

3131
- name: Get changed content/data files
3232
id: changed_files
33-
uses: ./.github/actions/get-changed-files
33+
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
3434
with:
3535
files: |
3636
content/**
3737
data/**
3838
3939
- name: Print content linter annotations if changed content/data files
40-
if: steps.changed_files.outputs.filtered_changed_files
40+
if: steps.changed_files.outputs.any_modified == 'true'
4141
env:
42-
# Make it an environment variable so that its value doesn't need to be escaped.
43-
# See https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
44-
CHANGED_FILES: |-
45-
${{ steps.changed_files.outputs.filtered_changed_files }}
42+
CHANGED_FILES: ${{ steps.changed_files.outputs.all_modified_files }}
4643
# If there are errors, using `--print-annotations` will make it
4744
# so it does *not* exit non-zero.
4845
# This is so that all warnings and errors are printed.
4946
run: npm run lint-content -- --print-annotations --paths $CHANGED_FILES
5047

5148
- name: Run content linter if changed content/data files
52-
if: steps.changed_files.outputs.filtered_changed_files
49+
if: steps.changed_files.outputs.any_modified == 'true'
5350
env:
54-
# Make it an environment variable so that its value doesn't need to be escaped.
55-
# See https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
56-
CHANGED_FILES: |-
57-
${{ steps.changed_files.outputs.filtered_changed_files }}
51+
CHANGED_FILES: ${{ steps.changed_files.outputs.all_modified_files }}
5852
run: npm run lint-content -- --errors-only --paths $CHANGED_FILES

0 commit comments

Comments
 (0)