From 095a658996d7ac89b0eccf71085433a2e1c99185 Mon Sep 17 00:00:00 2001 From: Enginex0 Date: Wed, 11 Mar 2026 13:03:35 +0100 Subject: [PATCH] ci(build): fix pipeline trigger and release job gating paths-ignore for .github/** was preventing workflow-only pushes from triggering the pipeline at all. Release job was gated to push events only, so workflow_dispatch never published. Simplify paths-ignore to just **.md and allow both push and dispatch to trigger the release job. --- .github/workflows/build.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5a4f219..5e86b7f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,16 +3,10 @@ name: Build on: push: branches: [ "main" ] - paths-ignore: - - '**.md' - - '.github/**' - - '!.github/workflows/**' + paths-ignore: [ '**.md' ] pull_request: branches: [ "main" ] - paths-ignore: - - '**.md' - - '.github/**' - - '!.github/workflows/**' + paths-ignore: [ '**.md' ] workflow_dispatch: concurrency: @@ -120,7 +114,7 @@ jobs: release: needs: build - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' runs-on: ubuntu-latest permissions: contents: write