-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
name: ci | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
kubo-version: | ||
description: Kubo version to use during the run | ||
required: false | ||
push: | ||
branches: | ||
- main | ||
|
@@ -61,6 +65,7 @@ jobs: | |
- uses: ipfs/download-ipfs-distribution-action@v1 | ||
with: | ||
name: kubo | ||
version: ${{ github.event.inputs.kubo-version }} | ||
- uses: ipfs/download-ipfs-distribution-action@v1 | ||
with: | ||
name: ipfs-cluster-ctl | ||
|
@@ -136,13 +141,13 @@ jobs: | |
# dev dnslink is updated on each main branch update | ||
- run: npx dnslink-dnsimple --domain dev.webui.ipfs.io --link /ipfs/${{ steps.ipfs.outputs.cid }} | ||
if: github.ref == 'refs/heads/main' | ||
if: github.ref == 'refs/heads/main' && !github.event.inputs.kubo-version | ||
env: | ||
DNSIMPLE_TOKEN: ${{ secrets.DNSIMPLE_TOKEN }} | ||
|
||
# production dnslink is updated on release (during tag build) | ||
- run: npx dnslink-dnsimple --domain webui.ipfs.io --link /ipfs/${{ steps.ipfs.outputs.cid }} | ||
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' | ||
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && !github.event.inputs.kubo-version | ||
env: | ||
DNSIMPLE_TOKEN: ${{ secrets.DNSIMPLE_TOKEN }} | ||
|
||
|
@@ -221,7 +226,7 @@ jobs: | |
name: ipfs-webui_${{ github.sha }}.car | ||
|
||
- name: Dry-run semantic release | ||
if: github.ref != 'refs/heads/main' | ||
if: github.ref != 'refs/heads/main' && !github.event.inputs.kubo-version | ||
run: | | ||
git config user.name "ipfs-gui-bot" | ||
git config user.email "[email protected]" | ||
|
@@ -231,7 +236,7 @@ jobs: | |
|
||
# Update the version (npm version [major|minor|patch]) | ||
- name: Run semantic release | ||
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' | ||
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && !github.event.inputs.kubo-version | ||
run: | | ||
git config user.name "ipfs-gui-bot" | ||
git config user.email "[email protected]" | ||
|