Fix usermods.yml to only run for external fork PRs
Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
This commit is contained in:
4
.github/workflows/usermods.yml
vendored
4
.github/workflows/usermods.yml
vendored
@@ -12,6 +12,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
get_usermod_envs:
|
get_usermod_envs:
|
||||||
|
# Run on push events, or on pull_request events only from forks (not from branches within wled/WLED)
|
||||||
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
name: Gather Usermods
|
name: Gather Usermods
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -31,6 +33,8 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
# Run on push events, or on pull_request events only from forks (not from branches within wled/WLED)
|
||||||
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
name: Build Enviornments
|
name: Build Enviornments
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: get_usermod_envs
|
needs: get_usermod_envs
|
||||||
|
|||||||
Reference in New Issue
Block a user