From 80df8fb9020bd38e9300738bdea2ebd5a38d008b Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Sun, 8 Feb 2026 15:21:21 +0300 Subject: [PATCH] Rename CI workflow and trigger publish on push Rename .github/workflows/main.yml from 'CI' to 'Lint Test Build' and ignore pushes to main for that workflow. Update .github/workflows/publish.yml to run on push to main instead of relying on a workflow_run from CI, remove the workflow_run-specific checkout ref, keep full fetch (fetch-depth: 0), and make the paths-filter base robust by using ${{ github.event.before || 'HEAD^' }}. These changes decouple publishing from workflow_run events and ensure changed-package detection works on direct pushes. --- .github/workflows/main.yml | 3 ++- .github/workflows/publish.yml | 8 ++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d393490..0fd6ca3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,8 @@ -name: CI +name: Lint Test Build on: push: + branches-ignore: [main] jobs: check-lint-test-build: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 718062a..0f3a8d3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,27 +1,23 @@ name: Publish on: - workflow_run: - workflows: [CI] - types: [completed] + push: branches: [main] jobs: publish: - if: github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-22.04 steps: - name: Checkout repository uses: actions/checkout@v6 with: - ref: ${{ github.event.workflow_run.head_sha }} fetch-depth: 0 - name: Detect changed packages id: changes uses: dorny/paths-filter@v3 with: - base: HEAD^ + base: ${{ github.event.before || 'HEAD^' }} filters: | utils: - 'packages/utils/**'