From 494ff6194f48c5f2ef92dca0c6bdb1ec77bd9301 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Wed, 29 Jan 2025 19:44:25 +0100 Subject: [PATCH] github-action: Add AsciiDoc freeze warning (#605) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * github-action: Add AsciiDoc freeze warning * Update .github/workflows/comment-on-asciidoc-changes.yml Co-authored-by: Tim Rühsen * Update .github/workflows/comment-on-asciidoc-changes.yml * github-action: Add AsciiDoc freeze warning * github-action: Add AsciiDoc freeze warning * Update .github/workflows/comment-on-asciidoc-changes.yml --------- Co-authored-by: Tim Rühsen --- .../workflows/comment-on-asciidoc-changes.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/comment-on-asciidoc-changes.yml diff --git a/.github/workflows/comment-on-asciidoc-changes.yml b/.github/workflows/comment-on-asciidoc-changes.yml new file mode 100644 index 00000000..e1f6c3d2 --- /dev/null +++ b/.github/workflows/comment-on-asciidoc-changes.yml @@ -0,0 +1,20 @@ +--- +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 + - "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