Skip to content

Commit b3f3f0e

Browse files
germa89RobPasMue
andauthored
Making checkout optional (#124)
Co-authored-by: Roberto Pastor Muela <[email protected]>
1 parent 34e3b50 commit b3f3f0e

File tree

11 files changed

+68
-1
lines changed

11 files changed

+68
-1
lines changed

build-ci-wheels/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,19 @@ inputs:
3232
default: false
3333
required: false
3434
type: boolean
35+
checkout:
36+
description: 'Whether to checkout the repository or not'
37+
default: true
38+
required: false
39+
type: boolean
3540

3641
runs:
3742
using: "composite"
3843
steps:
3944

4045
- name: "Install Git and clone project"
4146
uses: actions/checkout@v3
47+
if: ${{ input.checkout == 'true' }}
4248

4349
- name: "Set up Python ${{ inputs.python-version }}"
4450
uses: pyansys/actions/_setup-python@main

build-library/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,19 @@ inputs:
1616
required: false
1717
default: true
1818
type: boolean
19+
checkout:
20+
description: 'Whether to checkout the repository or not'
21+
default: true
22+
required: false
23+
type: boolean
1924

2025
runs:
2126
using: "composite"
2227
steps:
2328

2429
- name: "Install Git and clone project"
2530
uses: actions/checkout@v3
31+
if: ${{ input.checkout == 'true' }}
2632

2733
- name: "Set up Python"
2834
uses: pyansys/actions/_setup-python@main

build-wheelhouse/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ inputs:
2828
required: false
2929
default: ''
3030
type: string
31+
checkout:
32+
description: 'Whether to checkout the repository or not'
33+
default: true
34+
required: false
35+
type: boolean
3136

3237

3338
runs:
@@ -36,6 +41,7 @@ runs:
3641

3742
- name: "Install Git and clone project"
3843
uses: actions/checkout@v3
44+
if: ${{ input.checkout == 'true' }}
3945

4046
- name: "Set up Python ${{ inputs.python-version }}"
4147
uses: pyansys/actions/_setup-python@main

check-licenses/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,17 @@ inputs:
2222
required: false
2323
default: ''
2424
type: string
25+
checkout:
26+
description: 'Whether to checkout the repository or not'
27+
default: true
28+
required: false
29+
type: boolean
2530

2631
runs:
2732
using: "composite"
2833
steps:
2934
- name: "Install Git and clone project"
30-
if: inputs.skip-install == 'false'
35+
if: ${{ (inputs.skip-install == 'false') && (input.checkout == 'true') }}
3136
uses: actions/checkout@v3
3237

3338
- name: "Set up Python"

code-style/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,19 @@ inputs:
1212
required: false
1313
default: true
1414
type: boolean
15+
checkout:
16+
description: 'Whether to checkout the repository or not'
17+
default: true
18+
required: false
19+
type: boolean
1520

1621
runs:
1722
using: "composite"
1823
steps:
1924

2025
- name: "Install Git and clone project"
2126
uses: actions/checkout@v3
27+
if: ${{ input.checkout == 'true' }}
2228

2329
- name: "Set up Python"
2430
uses: pyansys/actions/_setup-python@main

doc-build/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,19 @@ inputs:
3232
default: false
3333
required: false
3434
type: boolean
35+
checkout:
36+
description: 'Whether to checkout the repository or not'
37+
default: true
38+
required: false
39+
type: boolean
3540

3641
runs:
3742
using: "composite"
3843
steps:
3944

4045
- name: "Install Git and clone project"
4146
uses: actions/checkout@v3
47+
if: ${{ (inputs.skip-install == 'false') && (input.checkout == 'true') }}
4248

4349
- name: "Check if X Virtual Frame Buffer is needed"
4450
shell: bash

doc-deploy-dev/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ inputs:
5757
description: 'Check the existence of artifact(s) without downloading'
5858
required: false
5959
type: string
60+
checkout:
61+
description: 'Whether to checkout the repository or not'
62+
default: true
63+
required: false
64+
type: boolean
6065

6166
runs:
6267
using: "composite"
@@ -69,6 +74,7 @@ runs:
6974
7075
- name: "Checkout project in the GitHub Pages branch"
7176
uses: actions/checkout@v3
77+
if: ${{ input.checkout == 'true' }}
7278
with:
7379
ref: 'gh-pages'
7480

doc-deploy-stable/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,19 @@ inputs:
3030
default: '3'
3131
required: false
3232
type: string
33+
checkout:
34+
description: 'Whether to checkout the repository or not'
35+
default: true
36+
required: false
37+
type: boolean
3338

3439
runs:
3540
using: "composite"
3641
steps:
3742

3843
- name: "Checkout project in the GitHub Pages branch"
3944
uses: actions/checkout@v3
45+
if: ${{ input.checkout == 'true' }}
4046
with:
4147
ref: 'gh-pages'
4248

doc-deploy-to-repo/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,20 @@ inputs:
1818
description: "Required application token for documentation deployment."
1919
required: true
2020
type: string
21+
checkout:
22+
description: 'Whether to checkout the repository or not'
23+
24+
default: true
25+
required: false
26+
type: boolean
2127

2228
runs:
2329
using: "composite"
2430
steps:
2531

2632
- name: "Checkout project in the GitHub Pages branch"
2733
uses: actions/checkout@v3
34+
if: ${{ input.checkout == 'true' }}
2835

2936
- name: "Download the HTML documentation artifact"
3037
uses: actions/download-artifact@v3

doc-style/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,19 @@ inputs:
1111
description: "Required token for Vale commenter."
1212
required: true
1313
type: string
14+
checkout:
15+
description: 'Whether to checkout the repository or not'
16+
default: true
17+
required: false
18+
type: boolean
1419

1520
runs:
1621
using: "composite"
1722
steps:
1823

1924
- name: "Install Git and clone project"
2025
uses: actions/checkout@v3
26+
if: ${{ input.checkout == 'true' }}
2127

2228
- name: "Run Vale"
2329
uses: errata-ai/vale-action@reviewdog

tests-pytest/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,20 @@ inputs:
3131
default: false
3232
required: false
3333
type: boolean
34+
checkout:
35+
description: 'Whether to checkout the repository or not'
36+
default: true
37+
required: false
38+
type: boolean
39+
3440

3541
runs:
3642
using: "composite"
3743
steps:
3844

3945
- name: "Install Git and clone project"
4046
uses: actions/checkout@v3
47+
if: ${{ input.checkout == 'true' }}
4148

4249
- name: "Set up Python"
4350
uses: pyansys/actions/_setup-python@main

0 commit comments

Comments
 (0)