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

@ -35,17 +35,27 @@ 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