generated from Templates/Baseline
migrate content #1
@ -34,18 +34,28 @@ showHelp() {
|
||||
HELP
|
||||
}
|
||||
|
||||
showENV () {
|
||||
sayW "Showing plugin settings:" "showENV"
|
||||
say "PLUGIN_OWNER: $PLUGIN_OWNER" "showENV"
|
||||
say "PLUGIN_PACKAGE_NAME: $PLUGIN_PACKAGE_NAME" "showENV"
|
||||
say "PLUGIN_PACKAGE_VERSION: $PLUGIN_PACKAGE_VERSION" "showENV"
|
||||
say "PLUGIN_FILE_NAME: $PLUGIN_FILE_NAME" "showENV"
|
||||
say "PLUGIN_UPDATE: $PLUGIN_UPDATE" "showENV"
|
||||
showENV() {
|
||||
env | sort
|
||||
}
|
||||
|
||||
showSettings() {
|
||||
say "PLUGIN_OWNER: $PLUGIN_OWNER" "showSettings"
|
||||
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() {
|
||||
if [ -n "$PLUGIN_DEBUG" ]; then
|
||||
sayW "Debug mode enabled.Showing plugin settings:"
|
||||
sayW "Debug mode enabled."
|
||||
showSettings
|
||||
showENV
|
||||
exit 0
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user