Skip to content

Commit 285dba4

Browse files
Merge pull request #58 from AdobeDocs/auto-content-update
[update-bot] Content update (2026-05-22 14:31:45)
2 parents 85c1e27 + 66af5df commit 285dba4

2 files changed

Lines changed: 20 additions & 46 deletions

File tree

.github/workflows/lint.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,26 @@ name: Lint
33
on:
44
pull_request:
55
branches: [main]
6-
paths:
7-
- 'src/pages/**'
86

97
jobs:
108
lint:
119
runs-on: ubuntu-latest
1210
steps:
1311
- name: Checkout
1412
uses: actions/checkout@v6
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Check for src/pages changes
17+
id: changes
18+
run: |
19+
git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q '^src/pages/' \
20+
&& echo "changed=true" >> $GITHUB_OUTPUT \
21+
|| echo "changed=false" >> $GITHUB_OUTPUT
1522
1623
- name: Lint
1724
id: lint
25+
if: steps.changes.outputs.changed == 'true'
1826
continue-on-error: true
1927
run: npx --yes github:AdobeDocs/adp-devsite-utils runLint -v
2028

@@ -30,7 +38,8 @@ jobs:
3038
path: |
3139
linter-report.txt
3240
pr-number.txt
41+
if-no-files-found: ignore
3342

3443
- name: Fail if linter found errors
35-
if: steps.lint.outcome == 'failure'
44+
if: steps.changes.outputs.changed == 'true' && steps.lint.outcome == 'failure'
3645
run: exit 1

.gitignore

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,15 @@
1-
# OS and IDE generated files #
2-
##############################
1+
# OS
32
.DS_Store
4-
.vscode
5-
.vscode/*
6-
.history
7-
.idea
8-
.editorconfig
93

10-
# npm yarn
11-
node_modules
12-
package-lock.json
13-
yarn-error.log
14-
.pnp.*
15-
.yarn/*
16-
17-
# keep in repo
18-
!.gitignore
19-
!.yarn.lock
20-
!.yarnrc.yml
21-
!.yarn/patches
22-
!.yarn/plugins
23-
!.yarn/releases
24-
!.yarn/sdks
25-
!.yarn/versions
4+
# IDE
5+
.vscode
266

27-
# gatsby files
7+
# Environment variables
288
.env
29-
.cache
30-
public
319

32-
# cypress
33-
cypress/videos
34-
cypress/screenshots
35-
36-
# lerna
37-
lerna-debug.log
38-
39-
# local actions
40-
.actrc
41-
.secrets
42-
local-test.yml
43-
44-
# yalc
45-
.yalc
46-
yalc.lock
10+
# npm
11+
node_modules
12+
package-lock.json
4713

48-
# txt
49-
linter-output.txt
14+
# Lint output
5015
linter-report.txt

0 commit comments

Comments
 (0)