Skip to content

Commit

Permalink
Run workflows required for merges when label s:review-needed is set
Browse files Browse the repository at this point in the history
  • Loading branch information
sea212 committed Jul 17, 2023
1 parent 257932c commit b5217a6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Coverage

on:
push:
branches: [ main ]
pull_request:
types: [ labeled ]
push:
branches: [ main ]

env:
Expand All @@ -12,6 +12,7 @@ env:
jobs:
coverage:
name: Coverage
if: (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 's:review-needed'))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Rust

on:
push:
branches: [ main ]
pull_request:
types: [ labeled ]
push:
branches: [ main ]

env:
Expand All @@ -12,6 +12,7 @@ env:
jobs:
format:
name: Format
if: (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 's:review-needed'))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -32,6 +33,7 @@ jobs:

copyright:
name: Copyright Notices
if: (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 's:review-needed'))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -52,6 +54,7 @@ jobs:

checks:
name: Checks
if: (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 's:review-needed'))
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -75,6 +78,7 @@ jobs:

benchmark:
name: Quick check benchmarks
if: (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 's:review-needed'))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -87,6 +91,7 @@ jobs:

test_standalone:
name: Test standalone build
if: (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 's:review-needed'))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down Expand Up @@ -117,6 +122,7 @@ jobs:

test_parachain:
name: Test parachain build
if: (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 's:review-needed'))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down Expand Up @@ -147,6 +153,7 @@ jobs:

fuzz:
name: Fuzz
if: (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 's:review-needed'))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down

0 comments on commit b5217a6

Please sign in to comment.