Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@ uses: wtag/pronto-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
```

### MonoRepo

```yaml
uses: wtag/pronto-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
code_directory: ferryhub-core
```
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ inputs:
github_token:
description: 'Token to use for reporting'
required: true
code_directory:
description: 'path to code directory'
required: false
runs:
using: 'docker'
image: 'docker://welltravel/pronto-action:latest'
args:
- ${{ inputs.github_token }}
- ${{ inputs.code_directory }}
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
set -eo pipefail

export PRONTO_GITHUB_ACCESS_TOKEN="${1}"
export BASE_FOLDER="${2}"

SHA=$(jq --raw-output .head_commit.id "${GITHUB_EVENT_PATH}")
OWNER=$(jq --raw-output .repository.owner.name "${GITHUB_EVENT_PATH}")
Expand All @@ -19,6 +20,10 @@ fi

git fetch --unshallow

if [ ! -z "${BASE_FOLDER}" ]; then
cd ${BASE_FOLDER}
fi

for PULL_ID in $PULL_IDS; do
PRONTO_PULL_REQUEST_ID=$PULL_ID /usr/local/bundle/bin/pronto run -f github_status github_pr -c origin/master
done