Skip to content

Commit a1f8635

Browse files
committed
Move GHA conditional into new guide.
1 parent b9fb06e commit a1f8635

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

.github/workflows/ci_tests_run_notebooks.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ concurrency:
1717

1818
jobs:
1919
tests:
20-
# Do not run the test matrix on PRs affecting the rendering
21-
if: ${{ !(github.event_name == 'pull_request') || !contains(github.event.pull_request.labels.*.name, 'html rendering / skip testing') }}
22-
2320
name: ${{ matrix.os }} ${{ matrix.name }}
2421
runs-on: ${{ matrix.os }}
2522
strategy:
@@ -57,9 +54,6 @@ jobs:
5754

5855

5956
gha_buildhtml:
60-
# When label is used, we do run buildhtml on GHA to check if the publishing job will run or not.
61-
# Use in case when new content has run into troubles on CircleCI.
62-
if: ${{ (github.event_name == 'pull_request') && contains(github.event.pull_request.labels.*.name, 'GHA buildhtml') }}
6357
name: Buildhtml testing
6458
runs-on: ubuntu-latest
6559
steps:

contributing.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Guide to Contributing
1+
# Guide for Contributors
2+
3+
This guide is for contributing content to the tutorials.
24

35
First, clone this repository.
46

index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
:glob:
66
tutorials/**/*
77
contributing
8+
maintainers
89
```

maintainers.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Guide for Maintainers
2+
3+
This guide for configuring and maintaining collection of executable
4+
tutorials.
5+
6+
## Specialized Patterns
7+
8+
Sometimes it is convenient to disable a job in a GitHub Action on certain Pull
9+
Requests. This may be added to the job to configure it to skip Pull Requests
10+
that have a given label called `LABEL`.
11+
12+
```yaml
13+
jobs:
14+
tests:
15+
if: ${{ !(github.event_name == 'pull_request') || !contains(github.event.pull_request.labels.*.name, 'LABEL') }}
16+
```

0 commit comments

Comments
 (0)