[ci] add conditional if on forks

This commit is contained in:
Tomas Votruba 2020-11-03 01:12:32 +01:00
parent 9af4223bd6
commit d204364e39

View File

@ -71,10 +71,15 @@ jobs:
- run: composer install --no-progress --ansi
- run: ${{ matrix.actions.write_run }}
-
# Check if the event is not triggered by a fork
if: github.event.pull_request.head.repo.full_name == github.repository
run: ${{ matrix.actions.write_run }}
# see https://github.com/EndBug/add-and-commit
-
# Check if the event is not triggered by a fork
if: github.event.pull_request.head.repo.full_name == github.repository
uses: EndBug/add-and-commit@v5.1.0
with:
# The arguments for the `git add` command (see the paragraph below for more info)