Skip to content

Commit 90b5f3a

Browse files
galarghSgtPooki
andauthored
ci: made the kubo version param CI workflow uses configurable (#2032)
Co-authored-by: Piotr Galar <[email protected]> Co-authored-by: Russell Dempsey <[email protected]>
1 parent d3a6524 commit 90b5f3a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: ci
22
on:
33
workflow_dispatch:
4+
inputs:
5+
kubo-version:
6+
description: Kubo version to use during the run
7+
required: false
48
push:
59
branches:
610
- main
@@ -61,6 +65,7 @@ jobs:
6165
- uses: ipfs/download-ipfs-distribution-action@v1
6266
with:
6367
name: kubo
68+
version: ${{ github.event.inputs.kubo-version }}
6469
- uses: ipfs/download-ipfs-distribution-action@v1
6570
with:
6671
name: ipfs-cluster-ctl
@@ -136,13 +141,13 @@ jobs:
136141
137142
# dev dnslink is updated on each main branch update
138143
- run: npx dnslink-dnsimple --domain dev.webui.ipfs.io --link /ipfs/${{ steps.ipfs.outputs.cid }}
139-
if: github.ref == 'refs/heads/main'
144+
if: github.ref == 'refs/heads/main' && !github.event.inputs.kubo-version
140145
env:
141146
DNSIMPLE_TOKEN: ${{ secrets.DNSIMPLE_TOKEN }}
142147

143148
# production dnslink is updated on release (during tag build)
144149
- run: npx dnslink-dnsimple --domain webui.ipfs.io --link /ipfs/${{ steps.ipfs.outputs.cid }}
145-
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch'
150+
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && !github.event.inputs.kubo-version
146151
env:
147152
DNSIMPLE_TOKEN: ${{ secrets.DNSIMPLE_TOKEN }}
148153

@@ -221,7 +226,7 @@ jobs:
221226
name: ipfs-webui_${{ github.sha }}.car
222227

223228
- name: Dry-run semantic release
224-
if: github.ref != 'refs/heads/main'
229+
if: github.ref != 'refs/heads/main' && !github.event.inputs.kubo-version
225230
run: |
226231
git config user.name "ipfs-gui-bot"
227232
git config user.email "[email protected]"
@@ -231,7 +236,7 @@ jobs:
231236

232237
# Update the version (npm version [major|minor|patch])
233238
- name: Run semantic release
234-
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch'
239+
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && !github.event.inputs.kubo-version
235240
run: |
236241
git config user.name "ipfs-gui-bot"
237242
git config user.email "[email protected]"

0 commit comments

Comments
 (0)