From 157ae4fbe1e6674ce7abb4aa5730ece0686cf690 Mon Sep 17 00:00:00 2001 From: Karl Cardenas <29551334+karl-cardenas-coding@users.noreply.github.com> Date: Fri, 18 Oct 2024 08:28:11 -0700 Subject: [PATCH] ci: backports message improvement (#4342) * ci: comment out color until issue is fixed * chore: remove comment * ci: remove index from docs-latests site (cherry picked from commit 36f959f0d454e2ea9ae9523fda7683e5719e15fc) --- .github/workflows/aloglia_crawler.yaml | 2 +- .github/workflows/api_format.yaml | 2 +- .github/workflows/backport.yaml | 2 +- .github/workflows/container-prune.yaml | 2 +- .github/workflows/packs-data.yaml | 2 +- .github/workflows/release-preview.yaml | 14 ++++++++++++++ .github/workflows/versions_robot.yaml | 2 +- 7 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/aloglia_crawler.yaml b/.github/workflows/aloglia_crawler.yaml index 18d96473e2..f52b6e75b9 100644 --- a/.github/workflows/aloglia_crawler.yaml +++ b/.github/workflows/aloglia_crawler.yaml @@ -32,7 +32,7 @@ jobs: - name: Slack Notification if: ${{ failure() }} - uses: rtCamp/action-slack-notify@v2 + uses: rtCamp/action-slack-notify@v2.3.0 env: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} SLACK_USERNAME: "spectromate" diff --git a/.github/workflows/api_format.yaml b/.github/workflows/api_format.yaml index 32f436ab1f..dbeeafc04a 100644 --- a/.github/workflows/api_format.yaml +++ b/.github/workflows/api_format.yaml @@ -78,7 +78,7 @@ jobs: - name: Slack Notification if: ${{ failure() }} - uses: rtCamp/action-slack-notify@v2 + uses: rtCamp/action-slack-notify@v2.3.0 env: SLACK_WEBHOOK: ${{ secrets.SLACK_PRIVATE_TEAM_WEBHOOK }} SLACK_USERNAME: "spectromate" diff --git a/.github/workflows/backport.yaml b/.github/workflows/backport.yaml index fa0fcf0921..c787cafd11 100644 --- a/.github/workflows/backport.yaml +++ b/.github/workflows/backport.yaml @@ -109,7 +109,7 @@ jobs: - name: Slack Notification if: ${{ failure() }} - uses: rtCamp/action-slack-notify@v2 + uses: rtCamp/action-slack-notify@v2.3.0 env: SLACK_WEBHOOK: ${{ secrets.SLACK_PRIVATE_TEAM_WEBHOOK }} SLACK_USERNAME: "spectromate" diff --git a/.github/workflows/container-prune.yaml b/.github/workflows/container-prune.yaml index 5aed81fee2..489eecbb79 100644 --- a/.github/workflows/container-prune.yaml +++ b/.github/workflows/container-prune.yaml @@ -29,7 +29,7 @@ jobs: - name: Slack Notification if: ${{ failure() }} - uses: rtCamp/action-slack-notify@v2 + uses: rtCamp/action-slack-notify@v2.3.0 env: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} SLACK_USERNAME: "spectromate" diff --git a/.github/workflows/packs-data.yaml b/.github/workflows/packs-data.yaml index 2e04579f0e..de74e191b3 100644 --- a/.github/workflows/packs-data.yaml +++ b/.github/workflows/packs-data.yaml @@ -43,7 +43,7 @@ jobs: - name: Slack Notification if: ${{ failure() }} - uses: rtCamp/action-slack-notify@v2 + uses: rtCamp/action-slack-notify@v2.3.0 env: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} SLACK_USERNAME: "spectromate" diff --git a/.github/workflows/release-preview.yaml b/.github/workflows/release-preview.yaml index 285c9143a2..2bbe4cc2ab 100644 --- a/.github/workflows/release-preview.yaml +++ b/.github/workflows/release-preview.yaml @@ -40,6 +40,20 @@ jobs: - run: npm ci + + - name: Make Robots.txt + run: | + touch static/robots.txt + echo "User-agent: *" >> robots.txt + echo "Disallow: /" >> robots.txt + excho "Sitemap: https://docs-latest.spectrocloud.com/sitemap.xml" >> robots.txt + + + - name: Ensure noIndex is set + id: check_noindex + run: node scripts/noindex_docusaurus_config.js $RUNNER_TEMP $PWD && mv $RUNNER_TEMP/temp.docusaurus.config.js $PWD/docusaurus.config.j + + - name: Build run: | touch .env diff --git a/.github/workflows/versions_robot.yaml b/.github/workflows/versions_robot.yaml index fb69024781..413c01e1ce 100644 --- a/.github/workflows/versions_robot.yaml +++ b/.github/workflows/versions_robot.yaml @@ -95,7 +95,7 @@ jobs: - name: Slack Notification if: ${{ failure() }} - uses: rtCamp/action-slack-notify@v2 + uses: rtCamp/action-slack-notify@v2.3.0 env: SLACK_WEBHOOK: ${{ secrets.SLACK_PRIVATE_TEAM_WEBHOOK }} SLACK_USERNAME: "spectromate"