Fix failing action when PR is already open. (#5380)

This commit is contained in:
Steven Perron 2023-08-15 06:53:10 -07:00 committed by GitHub
parent 0f17d05c48
commit c558886610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,10 @@ jobs:
if: steps.update_dependencies.outputs.changed == 'true'
run: |
git push --force --set-upstream origin roll_deps
gh pr create --label 'kokoro:run' --base main -f -r s-perron
# Create a PR. If it aready exists, the command fails, so ignore the return code.
gh pr create --base main -f -r s-perron || true
# Add the 'kokoro:run' label so that the kokoro tests will be run.
gh pr edit --add-label 'kokoro:run'
gh pr merge --auto --squash
env:
GITHUB_TOKEN: ${{ github.token }}