Fix and test choco action (#911)
* ci(choco): fix action Signed-off-by: hackercat <me@hackerc.at> * fix(editorconfig): force style for all files, fix typo Signed-off-by: hackercat <me@hackerc.at> * ci(choco): test choco action Signed-off-by: hackercat <me@hackerc.at> * fix(editorconfig): unformat Dockerfile/sh Signed-off-by: hackercat <me@hackerc.at>
This commit is contained in:
6
.github/actions/choco/entrypoint.sh
vendored
6
.github/actions/choco/entrypoint.sh
vendored
@@ -3,7 +3,7 @@
|
||||
set -e
|
||||
|
||||
function choco {
|
||||
mono /opt/chocolatey/code_drop/chocolatey/choco.exe "$@" --allow-unofficial --nocolor
|
||||
mono /opt/chocolatey/choco.exe "$@" --allow-unofficial --nocolor
|
||||
}
|
||||
|
||||
function get_version {
|
||||
@@ -26,4 +26,6 @@ cp LICENSE tools/LICENSE.txt
|
||||
cp VERIFICATION tools/VERIFICATION.txt
|
||||
cp dist/act_windows_amd64/act.exe tools/
|
||||
choco pack act-cli.nuspec --version ${VERSION}
|
||||
choco push act-cli.${VERSION}.nupkg --api-key ${INPUT_APIKEY} -s https://push.chocolatey.org/ --timeout 180
|
||||
if [[ "$INPUT_PUSH" == "true" ]]; then
|
||||
choco push act-cli.${VERSION}.nupkg --api-key ${INPUT_APIKEY} -s https://push.chocolatey.org/ --timeout 180
|
||||
fi
|
||||
|
Reference in New Issue
Block a user