Skip to content

Commit

Permalink
ci: made the kubo version param CI workflow uses configurable (#2032)
Browse files Browse the repository at this point in the history
Co-authored-by: Piotr Galar <[email protected]>
Co-authored-by: Russell Dempsey <[email protected]>
  • Loading branch information
galargh and SgtPooki authored Oct 5, 2022
1 parent d3a6524 commit 90b5f3a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

Expand Down Expand Up @@ -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]"
Expand All @@ -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]"
Expand Down

0 comments on commit 90b5f3a

Please sign in to comment.