generated from Templates/Baseline
migrate content #1
@ -34,18 +34,28 @@ showHelp() {
|
|||||||
HELP
|
HELP
|
||||||
}
|
}
|
||||||
|
|
||||||
showENV () {
|
showENV() {
|
||||||
sayW "Showing plugin settings:" "showENV"
|
env | sort
|
||||||
say "PLUGIN_OWNER: $PLUGIN_OWNER" "showENV"
|
}
|
||||||
say "PLUGIN_PACKAGE_NAME: $PLUGIN_PACKAGE_NAME" "showENV"
|
|
||||||
say "PLUGIN_PACKAGE_VERSION: $PLUGIN_PACKAGE_VERSION" "showENV"
|
showSettings() {
|
||||||
say "PLUGIN_FILE_NAME: $PLUGIN_FILE_NAME" "showENV"
|
say "PLUGIN_OWNER: $PLUGIN_OWNER" "showSettings"
|
||||||
say "PLUGIN_UPDATE: $PLUGIN_UPDATE" "showENV"
|
say "PLUGIN_PACKAGE_NAME: $PLUGIN_PACKAGE_NAME" "showSettings"
|
||||||
|
say "PLUGIN_PACKAGE_VERSION: $PLUGIN_PACKAGE_VERSION" "showSettings"
|
||||||
|
say "PLUGIN_FILE_NAME: $PLUGIN_FILE_NAME" "showSettings"
|
||||||
|
say "PLUGIN_UPDATE: $PLUGIN_UPDATE" "showSettings"
|
||||||
|
}
|
||||||
|
|
||||||
|
uploadArtifact() {
|
||||||
|
curl --user your_username:your_password_or_token \
|
||||||
|
--upload-file path/to/file.bin \
|
||||||
|
https://gitea.example.com/api/packages/testuser/generic/test_package/1.0.0/file.bin
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
if [ -n "$PLUGIN_DEBUG" ]; then
|
if [ -n "$PLUGIN_DEBUG" ]; then
|
||||||
sayW "Debug mode enabled.Showing plugin settings:"
|
sayW "Debug mode enabled."
|
||||||
|
showSettings
|
||||||
showENV
|
showENV
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user