Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Do not check choco version on publish if requested #2

Merged
merged 4 commits into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Release to Chocolatey
on:
workflow_dispatch:
inputs:
no-check-choco-version:
required: false
description: Disable version check in the Chocolatey community feed
schedule:
- cron: '0 0 * * *'

Expand Down Expand Up @@ -45,6 +49,8 @@ jobs:
- name: Install Dependencies
run: choco install au
- name: Build the latest release 🏗️
env:
NoCheckChocoVersion: ${{ github.event.inputs.no-check-choco-version || 'False' }}
run: |
./update.ps1
choco pack
Expand Down
7 changes: 6 additions & 1 deletion go-ipfs/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ function global:au_GetLatest {
return @{ Version = $version; URL32 = $url32; URL64 = $url64 }
}

Update-Package -ChecksumFor none
if ([bool]::Parse($Env:NoCheckChocoVersion)) {
Update-Package -ChecksumFor none -NoCheckChocoVersion
}
else {
Update-Package -ChecksumFor none
}