From b815ec96d6ea2391e35adf5e696889146b4464a6 Mon Sep 17 00:00:00 2001 From: Liam Thompson <32779855+leemthompo@users.noreply.github.com> Date: Thu, 27 Feb 2025 08:36:48 +0100 Subject: [PATCH] Revert "Add new docs actions (#123506)" This reverts commit 4d5f9b2332d64c196d6f87a4241a23c0a16599ff. --- .../workflows/comment-on-asciidoc-changes.yml | 21 +++++++++++++++++++ .github/workflows/docs-build.yml | 19 ----------------- .github/workflows/docs-cleanup.yml | 14 ------------- 3 files changed, 21 insertions(+), 33 deletions(-) create mode 100644 .github/workflows/comment-on-asciidoc-changes.yml delete mode 100644 .github/workflows/docs-build.yml delete mode 100644 .github/workflows/docs-cleanup.yml diff --git a/.github/workflows/comment-on-asciidoc-changes.yml b/.github/workflows/comment-on-asciidoc-changes.yml new file mode 100644 index 0000000000000..8e5f836b1489a --- /dev/null +++ b/.github/workflows/comment-on-asciidoc-changes.yml @@ -0,0 +1,21 @@ +--- +name: Comment on PR for .asciidoc changes + +on: + # We need to use pull_request_target to be able to comment on PRs from forks + pull_request_target: + types: + - synchronize + - opened + - reopened + branches: + - main + - master + - "9.0" + +jobs: + comment-on-asciidoc-change: + permissions: + contents: read + pull-requests: write + uses: elastic/docs-builder/.github/workflows/comment-on-asciidoc-changes.yml@main diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml deleted file mode 100644 index bb466166d0e87..0000000000000 --- a/.github/workflows/docs-build.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: docs-build - -on: - push: - branches: - - main - pull_request_target: ~ - merge_group: ~ - -jobs: - docs-preview: - uses: elastic/docs-builder/.github/workflows/preview-build.yml@main - with: - path-pattern: docs/** - permissions: - deployments: write - id-token: write - contents: read - pull-requests: read diff --git a/.github/workflows/docs-cleanup.yml b/.github/workflows/docs-cleanup.yml deleted file mode 100644 index f83e017b5f7c5..0000000000000 --- a/.github/workflows/docs-cleanup.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: docs-cleanup - -on: - pull_request_target: - types: - - closed - -jobs: - docs-preview: - uses: elastic/docs-builder/.github/workflows/preview-cleanup.yml@main - permissions: - contents: none - id-token: write - deployments: write