From a947e8f35e919590616289d9399fef1a1d369b7a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 1 Dec 2025 16:26:35 +0000 Subject: [PATCH 1/3] Initial plan From a2c1ad01da2d8ee90f0cbca334cacd9df0595764 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 1 Dec 2025 16:29:07 +0000 Subject: [PATCH 2/3] Fix usermods.yml to only run for external fork PRs Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com> --- .github/workflows/usermods.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/usermods.yml b/.github/workflows/usermods.yml index 9b60e400..3452ed46 100644 --- a/.github/workflows/usermods.yml +++ b/.github/workflows/usermods.yml @@ -12,6 +12,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 name: Gather Usermods runs-on: ubuntu-latest steps: @@ -31,6 +33,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 name: Build Enviornments runs-on: ubuntu-latest needs: get_usermod_envs From 7c6a1d717dd30e39ae60ab035dee2559b0d85dc6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 1 Dec 2025 16:46:13 +0000 Subject: [PATCH 3/3] Remove push trigger, only run usermods CI for external fork PRs Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com> --- .github/workflows/usermods.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/usermods.yml b/.github/workflows/usermods.yml index 3452ed46..e8ab6506 100644 --- a/.github/workflows/usermods.yml +++ b/.github/workflows/usermods.yml @@ -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