Skip to content

Commit bdce46c

Browse files
committed
Move checkout out of install action
1 parent 409b7da commit bdce46c

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/actions/install_requirements/action.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ inputs:
88
runs:
99
using: composite
1010
steps:
11-
- name: Checkout
12-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
13-
with:
14-
# Need this to get version number from last tag
15-
fetch-depth: 0
16-
1711
- name: Get version of python
1812
run: |
1913
PYTHON_VERSION="${{ inputs.python-version }}"

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
matrix:
2222
python-version: ["3.11", "3.12"]
2323
steps:
24+
- name: Checkout
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
26+
with:
27+
# Need this to get version number from last tag
28+
fetch-depth: 0
2429
- name: Setup project
2530
uses: ./.github/actions/install_requirements
2631
with:
@@ -41,6 +46,11 @@ jobs:
4146
runs-on: ubuntu-latest
4247

4348
steps:
49+
- name: Checkout
50+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
51+
with:
52+
# Need this to get version number from last tag
53+
fetch-depth: 0
4454
- name: Setup project
4555
uses: ./.github/actions/install_requirements
4656
with:

0 commit comments

Comments
 (0)