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
4 changes: 1 addition & 3 deletions .github/workflows/build-auto-generated-files.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
name: Build Auto-Generated Files
on:
pull_request:
workflow_dispatch:

jobs:
build-contributors:
name: Build Auto-Generated Files
if: github.repository != 'AdobeDocs/dev-docs-template'
uses: AdobeDocs/adp-devsite-workflow/.github/workflows/build-auto-generated-files.yml@main
uses: AdobeDocs/adp-devsite-workflow/.github/workflows/build-auto-generated-files-v2.yml@main
secrets: inherit

4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ on:
jobs:
deployment:
name: Deployment
uses: AdobeDocs/adp-devsite-workflow/.github/workflows/deploy.yml@main
if: github.actor != 'adp-devsite-app[bot]' && github.repository != 'AdobeDocs/dev-docs-template'
uses: AdobeDocs/adp-devsite-workflow/.github/workflows/deploy-v2.yml@main
secrets: inherit
with:
env: ${{ inputs.env || 'prod' }}
baseSha: ${{ inputs.baseSha || '' }}
Expand Down
25 changes: 19 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,47 @@ name: Lint
on:
pull_request:
branches: [main]
paths:
- 'src/pages/**'

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Check for src/pages changes
id: changes
env:
BASE_REF: ${{ github.base_ref }}
run: |
git diff --name-only "origin/${BASE_REF}...HEAD" | grep -q '^src/pages/' \
&& echo "changed=true" >> $GITHUB_OUTPUT \
|| echo "changed=false" >> $GITHUB_OUTPUT

- name: Lint
id: lint
if: steps.changes.outputs.changed == 'true'
continue-on-error: true
run: npx --yes github:AdobeDocs/adp-devsite-utils runLint -v

- name: Save PR number
if: always()
run: echo "${{ github.event.pull_request.number }}" > pr-number.txt
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
run: echo "$PR_NUMBER" > pr-number.txt

- name: Upload linter report
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: linter-report
path: |
linter-report.txt
pr-number.txt
if-no-files-found: ignore

- name: Fail if linter found errors
if: steps.lint.outcome == 'failure'
if: steps.changes.outputs.changed == 'true' && steps.lint.outcome == 'failure'
run: exit 1
2 changes: 1 addition & 1 deletion .github/workflows/post-lint-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
if: github.event.workflow_run.event == 'pull_request'
steps:
- name: Download linter report artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: linter-report
run-id: ${{ github.event.workflow_run.id }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ on:
jobs:
deployment:
name: Deployment
uses: AdobeDocs/adp-devsite-workflow/.github/workflows/deploy.yml@main
uses: AdobeDocs/adp-devsite-workflow/.github/workflows/deploy-v2.yml@main
secrets: inherit
with:
env: stage
baseSha: ${{ inputs.baseSha }}
Expand Down
50 changes: 8 additions & 42 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,50 +1,16 @@

# OS and IDE generated files #
##############################
# OS
.DS_Store
.vscode
.history
.idea
.editorconfig

# npm yarn
node_modules
package-lock.json
yarn-error.log
.pnp.*
.yarn/*

# keep in repo
!.gitignore
!.yarn.lock
!.yarnrc.yml
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
# IDE
.vscode

# gatsby files
# environment variables
.env
.cache
public

# cypress
cypress/videos
cypress/screenshots

# lerna
lerna-debug.log

# local actions
.actrc
.secrets
local-test.yml

# yalc
.yalc
yalc.lock
# npm
node_modules
package-lock.json

#txt
linter-output.txt
# generated by .github/workflows/lint.yml
linter-report.txt
Loading