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:
Will Tatam
2025-12-02 08:08:14 +00:00
committed by GitHub

View File

@@ -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