Skip to content

Commit ab8bab0

Browse files
committed
Skip devcontainer unless C++/Python/devcontainer files were touched
1 parent bf8afe5 commit ab8bab0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ jobs:
7070
uses: rapidsai/shared-workflows/.github/workflows/changed-files.yaml@main
7171
with:
7272
files_yaml: |
73+
build_devcontainer:
74+
- '.devcontainer/**'
75+
- '!.devcontainer/**/*.md'
7376
build_docs:
7477
- '**'
7578
- '!.ai/**'
@@ -607,6 +610,12 @@ jobs:
607610
env:
608611
GH_TOKEN: ${{ github.token }}
609612
devcontainer:
613+
needs: changed-files
614+
if: >-
615+
fromJSON(needs.changed-files.outputs.changed_file_groups).build_devcontainer ||
616+
fromJSON(needs.changed-files.outputs.changed_file_groups).test_cpp ||
617+
fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda ||
618+
fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_wheels
610619
permissions:
611620
actions: read
612621
contents: read

0 commit comments

Comments
 (0)