From 458655dc470ed91c601f31a9661a3d7b8ef38db9 Mon Sep 17 00:00:00 2001 From: Ajay Thorve Date: Thu, 23 Feb 2023 11:15:23 -0800 Subject: [PATCH] Fix GHA build workflow (#1120) This PR fixes the condition to trigger docs-build workflow in build.yaml to: - simplify the branch assertion - ensure that it only runs on push events (as opposed to workflow_dispatch events which trigger the nightlies). @ajschmidt8 Authors: - Ajay Thorve (https://github.com/AjayThorve) - AJ Schmidt (https://github.com/ajschmidt8) Approvers: - AJ Schmidt (https://github.com/ajschmidt8) URL: https://github.com/rapidsai/dask-cuda/pull/1120 --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d1974a7c5..59e188881 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -35,7 +35,7 @@ jobs: date: ${{ inputs.date }} sha: ${{ inputs.sha }} docs-build: - if: ${{ startsWith(github.ref, 'refs/heads/branch-') }} + if: github.ref_type == 'branch' && github.event_name == 'push' needs: [conda-python-build] secrets: inherit uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@branch-23.04