From 46eaddceaeef2aa2fc752672e5cdbcfe216508cc Mon Sep 17 00:00:00 2001 From: Karl Cardenas Date: Fri, 27 Oct 2023 13:04:17 -0700 Subject: [PATCH 1/2] ci: added missing condition for non-cron workflows --- .github/workflows/release.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 942e400f0d..1ee0da5236 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -34,6 +34,7 @@ concurrency: jobs: # This is the default workflow that uses the self-hosted runner. The self-hosted runner is slower than the GitHub-hosted large runner, but it does not incurr additional charges. build-self-hosted-runner: + if: ${{ github.event.inputs.useGitHubHostedLargeRunner != 'true' || github.event_name == 'schedule' }} name: Build Website runs-on: group: 'Doc Runners' @@ -67,6 +68,7 @@ jobs: # Use this workflow if you want to use the GitHub-hosted large runner. Useful for scenarios when you need a change to deploy faster than the self-hosted runner can build it. build-large-runner: + if: ${{ github.event.inputs.useGitHubHostedLargeRunner == 'true' && github.event_name != 'schedule' }} name: Build Website runs-on: group: 'Doc Runners' From 6704639697037afd1673cd162789b0f8e68eacc8 Mon Sep 17 00:00:00 2001 From: Karl Cardenas Date: Fri, 27 Oct 2023 13:22:04 -0700 Subject: [PATCH 2/2] ci: added slack notification --- .github/workflows/pull_request.yaml | 2 +- .github/workflows/release.yaml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index d8bdf13fd8..5b2674b3f9 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -57,7 +57,7 @@ jobs: build: name: Build needs: [run-ci] - runs-on: ["self-hosted", "linux", "x64", "vcenter3"] + runs-on: ubuntu-latest if: ${{ !github.event.pull_request.draft }} steps: - name: Checkout Repository diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1ee0da5236..3ce22a70a2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -36,9 +36,7 @@ jobs: build-self-hosted-runner: if: ${{ github.event.inputs.useGitHubHostedLargeRunner != 'true' || github.event_name == 'schedule' }} name: Build Website - runs-on: - group: 'Doc Runners' - labels: docbot + runs-on: ["self-hosted", "linux", "x64", "vcenter3"] steps: - name: Checkout Repository uses: actions/checkout@v4