Remove push trigger, only run usermods CI for external fork PRs

Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-01 16:46:13 +00:00
parent a2c1ad01da
commit 7c6a1d717d

View File

@@ -1,10 +1,6 @@
name: Usermod CI
on:
push:
paths:
- usermods/**
- .github/workflows/usermods.yml
pull_request:
paths:
- usermods/**
@@ -12,8 +8,8 @@ on:
jobs:
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
# 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
runs-on: ubuntu-latest
steps:
@@ -33,8 +29,8 @@ jobs:
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
# 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
runs-on: ubuntu-latest
needs: get_usermod_envs