migrate content #1

Merged
OCram85 merged 24 commits from migrate/content into main 2024-05-14 07:40:39 +02:00
Showing only changes of commit 8a94b09c87 - Show all commits

View File

@ -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