From 4dd952841c50f8a99e17b3abb97af7184e4e5daa Mon Sep 17 00:00:00 2001 From: Josh Bielick Date: Mon, 7 Oct 2019 15:04:48 -0400 Subject: [PATCH] correct the rb src path and entrypoint --- Dockerfile | 4 ++++ action.yml | 9 --------- entrypoint.sh | 4 +++- src/process_results | 2 ++ 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1c8ead8..9be6624 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,8 @@ FROM adwerx/pronto-ruby:1.1.0 COPY entrypoint.sh /entrypoint.sh +COPY ./src /runner + +ENV RUNNER_WORKSPACE /data + ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/action.yml b/action.yml index b9e7281..36173ee 100644 --- a/action.yml +++ b/action.yml @@ -5,13 +5,6 @@ branding: icon: code color: red inputs: - # formatters: - # description: >- - # Space-separated list of pronto formatters to use. - # See [the pronto README](https://github.com/prontolabs/pronto#github-integration) - # for more information. - # required: false - # default: text github_pr github_status runners: description: >- Space-separated list of pronto runners to run. @@ -32,8 +25,6 @@ runs: using: docker image: Dockerfile args: - - -f - - ${{ inputs.formatters }} - -r - ${{ inputs.runners }} - -c diff --git a/entrypoint.sh b/entrypoint.sh index cd7419c..33077d9 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,4 +2,6 @@ set -eo pipefail -pronto run -f json $@ | ./src/process_results +cd $RUNNER_WORKSPACE + +pronto run -f json $@ | /runner/process_results diff --git a/src/process_results b/src/process_results index 1b17c55..1fa092b 100755 --- a/src/process_results +++ b/src/process_results @@ -1,4 +1,6 @@ #!/usr/bin/ruby +require_relative './process_results' + result = ProcessResults.run exit(1) unless result.success?