mirror of
https://github.com/openvk/openvk
synced 2025-02-09 00:09:33 +03:00
ci(actions): restrict 'pull_request' runs to outer PRs (#1221)
'push' runs will run anyway on commits inside of repository
This commit is contained in:
parent
6ec54a379d
commit
8a979fad9d
2 changed files with 19 additions and 0 deletions
12
.github/workflows/build.yaml
vendored
12
.github/workflows/build.yaml
vendored
|
@ -14,6 +14,12 @@ jobs:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# 'push' runs on inner branches, 'pull_request' will run only on outer PRs
|
||||||
|
if: >
|
||||||
|
github.event_name == 'push'
|
||||||
|
|| (github.event_name == 'pull_request'
|
||||||
|
&& github.event.pull_request.head.repo.full_name != github.repository)
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
@ -65,6 +71,12 @@ jobs:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# 'push' runs on inner branches, 'pull_request' will run only on outer PRs
|
||||||
|
if: >
|
||||||
|
github.event_name == 'push'
|
||||||
|
|| (github.event_name == 'pull_request'
|
||||||
|
&& github.event.pull_request.head.repo.full_name != github.repository)
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
7
.github/workflows/lint.yaml
vendored
7
.github/workflows/lint.yaml
vendored
|
@ -7,6 +7,13 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
# 'push' runs on inner branches, 'pull_request' will run only on outer PRs
|
||||||
|
if: >
|
||||||
|
github.event_name == 'push'
|
||||||
|
|| (github.event_name == 'pull_request'
|
||||||
|
&& github.event.pull_request.head.repo.full_name != github.repository)
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in a new issue