From 479fde92235bdfd38d019bbcded21077325e47b2 Mon Sep 17 00:00:00 2001 From: louisachu Date: Tue, 10 Nov 2026 15:40:43 -0700 Subject: [PATCH] Auto content update (2026-11-10 22:40:42) --- .github/workflows/deploy.yml | 2 +- .github/workflows/lint.yml | 49 ------------------------- .github/workflows/post-lint-comment.yml | 32 ---------------- .github/workflows/pr-comment.yml | 17 +++++++++ .github/workflows/pr-validation.yml | 12 ++++++ .github/workflows/stage.yml | 2 +- 6 files changed, 31 insertions(+), 83 deletions(-) delete mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/post-lint-comment.yml create mode 100644 .github/workflows/pr-comment.yml create mode 100644 .github/workflows/pr-validation.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8181bc6b..cd3451ea 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,7 +27,7 @@ jobs: deployment: name: Deployment if: github.actor != 'adp-devsite-app[bot]' && github.repository != 'AdobeDocs/dev-docs-template' - uses: AdobeDocs/adp-devsite-workflow/.github/workflows/deploy-v2.yml@main + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/deploy-v3.yml@main secrets: inherit with: env: ${{ inputs.env || 'prod' }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index bec32fec..00000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -name: Lint -on: - pull_request: - branches: [main] - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - name: Checkout - 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() - 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@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.changes.outputs.changed == 'true' && steps.lint.outcome == 'failure' - run: exit 1 diff --git a/.github/workflows/post-lint-comment.yml b/.github/workflows/post-lint-comment.yml deleted file mode 100644 index d2c75fd1..00000000 --- a/.github/workflows/post-lint-comment.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -name: Post Linter Report -on: - workflow_run: - workflows: ["Lint"] - types: - - completed - -permissions: - pull-requests: write - -jobs: - comment: - runs-on: ubuntu-latest - if: github.event.workflow_run.event == 'pull_request' - steps: - - name: Download linter report artifact - uses: actions/download-artifact@v8 - with: - name: linter-report - run-id: ${{ github.event.workflow_run.id }} - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Post Linter Report to PR - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_REPOSITORY: ${{ github.repository }} - LINTER_REPORT_PATH: ./linter-report.txt - PR_NUMBER_PATH: ./pr-number.txt - run: | - npm install --no-save github:AdobeDocs/adp-devsite-scripts - node node_modules/adp-devsite-scripts/linter-bot/postLinterReport.js diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml new file mode 100644 index 00000000..807bbfe3 --- /dev/null +++ b/.github/workflows/pr-comment.yml @@ -0,0 +1,17 @@ +--- +name: PR Comment +on: + workflow_run: + workflows: ["PR validation"] + types: + - completed + +permissions: + pull-requests: write + +jobs: + comment: + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/pr-comment-v3.yml@main + with: + run_id: ${{ github.event.workflow_run.id }} + event: ${{ github.event.workflow_run.event }} diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml new file mode 100644 index 00000000..a304319f --- /dev/null +++ b/.github/workflows/pr-validation.yml @@ -0,0 +1,12 @@ +--- +name: PR validation +on: + pull_request: + branches: [main] + +jobs: + validate: + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/validate-pr-v3.yml@main + with: + pr_number: ${{ github.event.pull_request.number }} + base_ref: ${{ github.event.pull_request.base.ref }} \ No newline at end of file diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index d108f501..8ba108af 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -15,7 +15,7 @@ on: jobs: deployment: name: Deployment - uses: AdobeDocs/adp-devsite-workflow/.github/workflows/deploy-v2.yml@main + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/deploy-v3.yml@main secrets: inherit with: env: stage