renovate-downstream: check for branch in event instead of github.ref (#13857)

This commit is contained in:
Robert Lin 2020-09-16 20:48:06 +08:00 committed by GitHub
parent 176ea02451
commit c1200f2cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ jobs:
renovate:
runs-on: ubuntu-latest
# Run on commit status success on branch main, ignoring bot events
if: ${{ github.ref == 'refs/heads/main' && github.event.state == 'success' && github.event.context == 'buildkite/sourcegraph' }}
if: ${{ contains(github.event.branches.*.name, 'main') && github.event.state == 'success' && github.event.context == 'buildkite/sourcegraph' }}
steps:
- name: Checkout
uses: actions/checkout@v2