From 3491703dfe988faf8381f5c8a1c77dfab3a30c44 Mon Sep 17 00:00:00 2001 From: dkunhamb Date: Tue, 9 Jun 2026 08:39:29 -0500 Subject: [PATCH 1/3] feat: add doc-deploy-pr label so that it only runs on the label --- .github/labels.yml | 6 +++++- .github/workflows/ci_cd.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/labels.yml b/.github/labels.yml index 5120cd7a0d..08b6c08bb1 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -108,4 +108,8 @@ - name: skip-test description: Skips the test job in CI - color: e4e669 \ No newline at end of file + color: e4e669 + +- name: deploy-pr-doc + description: Triggers PR documentation deployment in CI + color: 0075ca \ No newline at end of file diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 25c87aeba1..1fc317600a 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -152,7 +152,11 @@ jobs: name: "Deploy PR documentation" runs-on: ubuntu-latest needs: [docs] - if: always() && needs.docs.result == 'success' + if: | + always() && + needs.docs.result == 'success' && + github.event_name == 'pull_request' && + contains(github.event.pull_request.labels.*.name, 'deploy-pr-doc') permissions: contents: write # Required to push documentation to gh-pages branch pull-requests: write # Needed to comment on PR with documentation link From 55c2f3636d5aa49ec6475b3b6170141ede02364d Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Tue, 9 Jun 2026 13:41:11 +0000 Subject: [PATCH 2/3] chore: adding changelog file 1651.added.md [dependabot-skip] --- doc/changelog.d/1651.added.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/1651.added.md diff --git a/doc/changelog.d/1651.added.md b/doc/changelog.d/1651.added.md new file mode 100644 index 0000000000..6fe74c5f2f --- /dev/null +++ b/doc/changelog.d/1651.added.md @@ -0,0 +1 @@ +Add doc-deploy-pr label so that it only runs if label is enabled From b6471da4c3c8120772619265451b8355f794a90e Mon Sep 17 00:00:00 2001 From: Dipin <26918585+dipinknair@users.noreply.github.com> Date: Wed, 10 Jun 2026 08:55:41 -0500 Subject: [PATCH 3/3] Update .github/workflows/ci_cd.yml Co-authored-by: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> --- .github/workflows/ci_cd.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 1fc317600a..2a4af27306 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -155,7 +155,6 @@ jobs: if: | always() && needs.docs.result == 'success' && - github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy-pr-doc') permissions: contents: write # Required to push documentation to gh-pages branch