.github/workflows: Do not run release protector on draft PRs (#46479)

This commit is contained in:
Indradhanush Gupta 2023-01-16 13:51:37 +05:30 committed by GitHub
parent d947d5813a
commit 0e954d341d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ on:
jobs:
protect-pr:
runs-on: ubuntu-latest
if: github.repository == 'sourcegraph/sourcegraph'
if: ${{ github.repository == 'sourcegraph/sourcegraph' && !github.event.pull_request.draft }}
steps:
- name: Check date and labels
id: check-date-and-labels