Merge pull request #5143 from wled/copilot/update-usermods-trigger-logic
Fix usermods.yml to only trigger for external fork PRs
This commit is contained in:
8
.github/workflows/usermods.yml
vendored
8
.github/workflows/usermods.yml
vendored
@@ -1,10 +1,6 @@
|
|||||||
name: Usermod CI
|
name: Usermod CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- usermods/**
|
|
||||||
- .github/workflows/usermods.yml
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- usermods/**
|
- usermods/**
|
||||||
@@ -12,6 +8,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
get_usermod_envs:
|
get_usermod_envs:
|
||||||
|
# Only run for pull requests from forks (not from branches within wled/WLED)
|
||||||
|
if: 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 +29,8 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
# Only run for pull requests from forks (not from branches within wled/WLED)
|
||||||
|
if: 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