extend output
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/test-image Pipeline was successful

This commit is contained in:
OCram85 2024-05-14 07:31:31 +02:00
parent 7aaf7064f0
commit 8a94b09c87

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