Skip to content

Commit 6195066

Browse files
author
igor.nepipenko
committed
fix(ref:1534): run PR quality check only forked
1 parent c3d8257 commit 6195066

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/quality-check.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@ on:
1111
types: [opened, synchronize, reopened]
1212

1313
jobs:
14+
should-run:
15+
runs-on: ubuntu-latest
16+
outputs:
17+
should-run-check: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository }}
18+
steps:
19+
- run: echo "Checking if workflow should run"
20+
1421
quality-check:
22+
needs: should-run
23+
if: needs.should-run.outputs.should-run-check == 'true'
1524
runs-on: ubuntu-latest
1625
permissions:
1726
contents: write

0 commit comments

Comments
 (0)