Merge pull request #4484 from consul/forks-pr-pronto
Fix checkout in Pronto on external pull requests
This commit is contained in:
8
.github/workflows/linters.yml
vendored
8
.github/workflows/linters.yml
vendored
@@ -13,6 +13,10 @@ jobs:
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
bundler-cache: true
|
||||
- name: Run Pronto
|
||||
- name: Run pronto
|
||||
run: |
|
||||
PRONTO_PULL_REQUEST_ID="$(jq --raw-output .number "$GITHUB_EVENT_PATH")" PRONTO_GITHUB_ACCESS_TOKEN="${{ github.token }}" bundle exec pronto run -f github_status github_pr -c origin/${{ github.base_ref }}
|
||||
if [ ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.event.pull_request.base.repo.full_name }} ]; then
|
||||
PRONTO_PULL_REQUEST_ID="$(jq --raw-output .number "$GITHUB_EVENT_PATH")" PRONTO_GITHUB_ACCESS_TOKEN="${{ github.token }}" bundle exec pronto run -f github_status github_pr -c origin/${{ github.base_ref }}
|
||||
else
|
||||
bundle exec pronto run --exit-code -c origin/${{ github.base_ref }}
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user