From f875ec1b94069aae97713710018b5f8693c9a6bf Mon Sep 17 00:00:00 2001 From: Viktor Benei Date: Tue, 8 Sep 2015 13:55:03 +0200 Subject: [PATCH] bitrise stack related update --- .gitignore | 2 +- bitrise.yml | 12 ++++++++++++ step.go | 6 +----- step.yml | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 bitrise.yml diff --git a/.gitignore b/.gitignore index 092a8e7..6397b46 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -.envstore.yml \ No newline at end of file +.bitrise* diff --git a/bitrise.yml b/bitrise.yml new file mode 100644 index 0000000..a88121e --- /dev/null +++ b/bitrise.yml @@ -0,0 +1,12 @@ +format_version: 1.0.0 +default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git + +workflows: + test: + steps: + - path::./: + - script: + inputs: + - content: |- + #!/bin/bash + echo "RANDOM_QUOTE: ${RANDOM_QUOTE}" diff --git a/step.go b/step.go index 11be114..b34e589 100644 --- a/step.go +++ b/step.go @@ -41,10 +41,6 @@ func main() { // init / cleanup the formatted output pth := os.Getenv("BITRISE_STEP_FORMATTED_OUTPUT_FILE_PATH") markdownlog.Setup(pth) - err := markdownlog.ClearLogFile() - if err != nil { - fmt.Errorf("Failed to clear log file, err: %s", err) - } // request urlString := "http://api.icndb.com/jokes/random" @@ -89,7 +85,7 @@ func main() { os.Exit(1) } - err := RunPipedEnvmanAdd("quote", joke) + err := RunPipedEnvmanAdd("RANDOM_QUOTE", joke) if err != nil { errorMessageToOutput(fmt.Sprintf("Failed to add output to envman, err: %s", err)) os.Exit(1) diff --git a/step.yml b/step.yml index cb5b1ed..bdaf9f4 100644 --- a/step.yml +++ b/step.yml @@ -20,7 +20,7 @@ dependencies: run_if: "" inputs: [] outputs: - - quote: + - RANDOM_QUOTE: opts: title: the quote summary: ""