File tree Expand file tree Collapse file tree 4 files changed +43
-31
lines changed
Expand file tree Collapse file tree 4 files changed +43
-31
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : artifact-checkout
2+ description : Replace the Checkout able to work either from an artifact or a git repo
3+
4+ inputs :
5+ artifact-id :
6+ description : The artifact-id to download and unpack. If not given, a standard git checkout is ran
7+ required : true
8+ path :
9+ description : Where to checkout to
10+ default : ' '
11+
12+ runs :
13+ using : composite
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v5
17+ with :
18+ path : ${{ inputs.path }}
19+ if : ! inputs.artifact-id
20+ - name : Download artifact
21+ id : download
22+ if : inputs.artifact-id
23+ uses : actions/download-artifact@v5
24+ with :
25+ artifact-id : ${{ inputs.artifact-id }}
26+ - name : Unpack it
27+ shell : bash
28+ if : inputs.artifact-id
29+ run : |
30+ tar -C ${{ inputs.path || '.' }} -p1 -zxf "${{ steps.download.outputs.download-path }}"
Original file line number Diff line number Diff line change 7070 uses : ./.github/workflows/test.yml
7171 with :
7272 artifact-id : ${{ steps.artifacts.outputs.artifact-id }}
73+ disable-ruff-check : true
7374
7475 - name : publish
7576 uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 1111 required : true
1212 type : number
1313 description : The artifact-id to run the tests against.
14+ disable-ruff-check :
15+ required : false
16+ type : boolean
17+ description : Disable the ruff format check. This should only be used by release.
1418jobs :
1519 build :
1620 runs-on : ${{ matrix.os }}
3842
3943 steps :
4044 - name : Checkout code
41- uses : ${{ github.repository }}/ .github/actions/checkout@${{ github.ref }}
45+ uses : ferringb/pkgcore/ .github/actions/checkout@deploy
4246 with :
4347 artifact-id : ${{ inputs.artifact-id }}
4448
8488 runs-on : ubuntu-latest
8589 steps :
8690 - name : Checkout pkgcore
87- uses : actions/checkout@v4
91+ uses : ferringb/pkgcore/.github/ actions/checkout@deploy
8892 with :
8993 path : pkgcore
94+ artifact-id : ${{ inputs.artifact-id }}
9095
9196 - name : Checkout pkgcheck
9297 uses : actions/checkout@v4
@@ -119,8 +124,9 @@ jobs:
119124 runs-on : ubuntu-latest
120125 steps :
121126 - name : Checkout pkgcore
122- uses : actions/checkout@v4
127+ uses : ferringb/pkgcore/.github/ actions/checkout@deploy
123128 with :
129+ artifact-id : ${{ inputs.artifact-id }}
124130 path : pkgcore
125131
126132 - name : Checkout pkgdev
@@ -152,6 +158,7 @@ jobs:
152158
153159 format :
154160 runs-on : ubuntu-latest
161+ if : ! inputs.disable-ruff-check
155162 steps :
156163 - name : Checkout code
157164 uses : actions/checkout@v4
@@ -163,8 +170,9 @@ jobs:
163170 runs-on : ubuntu-latest
164171 steps :
165172 - name : Checkout pkgcore
166- uses : actions/checkout@v4
173+ uses : ferringb/pkgcore/.github/ actions/checkout@deploy
167174 with :
175+ artifact-id : ${{ inputs.artifact-id }}
168176 path : pkgcore
169177
170178 - name : Checkout gentoo
You can’t perform that action at this time.
0 commit comments