Skip to content

Commit

Permalink
correct the rb src path and entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jbielick committed Oct 7, 2019
1 parent 1cab6ad commit 4dd9528
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
9 changes: 0 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -32,8 +25,6 @@ runs:
using: docker
image: Dockerfile
args:
- -f
- ${{ inputs.formatters }}
- -r
- ${{ inputs.runners }}
- -c
Expand Down
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

set -eo pipefail

pronto run -f json $@ | ./src/process_results
cd $RUNNER_WORKSPACE

pronto run -f json $@ | /runner/process_results
2 changes: 2 additions & 0 deletions src/process_results
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/ruby

require_relative './process_results'

result = ProcessResults.run
exit(1) unless result.success?

0 comments on commit 4dd9528

Please sign in to comment.