Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
# to native line endings on checkout.
*.md text diff=markdown
*.json.br filter=lfs diff=lfs merge=lfs -text
.github/workflows/*.lock.yml linguist-generated=true merge=ours
40 changes: 0 additions & 40 deletions .github/actions/get-changed-files/action.yml

This file was deleted.

204 changes: 0 additions & 204 deletions .github/actions/get-changed-files/get-changed-files.sh

This file was deleted.

14 changes: 14 additions & 0 deletions .github/aw/actions-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"entries": {
"actions/github-script@v8": {
"repo": "actions/github-script",
"version": "v8",
"sha": "ed597411d8f924073f98dfc5c65a23a2325f34cd"
},
"github/gh-aw/actions/setup@v0.57.0": {
"repo": "github/gh-aw/actions/setup",
"version": "v0.57.0",
"sha": "902845080df391b1f71845fcd7c303dfc0ac90b3"
}
}
}
16 changes: 5 additions & 11 deletions .github/workflows/content-lint-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,23 @@ jobs:

- name: Get changed content/data files
id: changed_files
uses: ./.github/actions/get-changed-files
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
with:
files: |
content/**
data/**

- name: Print content linter annotations if changed content/data files
if: steps.changed_files.outputs.filtered_changed_files
if: steps.changed_files.outputs.any_modified == 'true'
env:
# Make it an environment variable so that its value doesn't need to be escaped.
# See https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
CHANGED_FILES: |-
${{ steps.changed_files.outputs.filtered_changed_files }}
CHANGED_FILES: ${{ steps.changed_files.outputs.all_modified_files }}
# If there are errors, using `--print-annotations` will make it
# so it does *not* exit non-zero.
# This is so that all warnings and errors are printed.
run: npm run lint-content -- --print-annotations --paths $CHANGED_FILES

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