Simplify dependabot condition in pronto workflow
We had the `*` because, in the past, pull request could be opened by either dependabot or dependabot-bot. That's no longer the case since we started using dependabot v2.
This commit is contained in:
2
.github/workflows/pronto.yml
vendored
2
.github/workflows/pronto.yml
vendored
@@ -22,7 +22,7 @@ jobs:
|
|||||||
run: npm clean-install
|
run: npm clean-install
|
||||||
- name: Run pronto
|
- name: Run pronto
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.event.pull_request.base.repo.full_name }} && ${{ github.actor }} != dependabot* ]]; then
|
if [[ ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.event.pull_request.base.repo.full_name }} && ${{ github.actor }} != dependabot ]]; 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 }}
|
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
|
else
|
||||||
bundle exec pronto run --exit-code -c origin/${{ github.base_ref }}
|
bundle exec pronto run --exit-code -c origin/${{ github.base_ref }}
|
||||||
|
|||||||
Reference in New Issue
Block a user