Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: made the kubo version param CI workflow uses configurable #2032

Merged
merged 4 commits into from
Oct 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 "108953096+ipfs-gui-bot@users.noreply.github.com"
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 "108953096+ipfs-gui-bot@users.noreply.github.com"
Expand Down