Don't run workflow in draft prs

This commit is contained in:
Ilya Zlobintsev
2022-11-20 20:16:33 +02:00
committed by GitHub
parent 41cc2cd266
commit a55326cf12

View File

@@ -11,6 +11,7 @@ env:
jobs:
build-test:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
runs-on: ubuntu-20.04
steps:
@@ -26,7 +27,7 @@ jobs:
check-format:
runs-on: ubuntu-20.04
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- uses: actions/checkout@v2
- name: install rustfmt