From 49011a5619316084317c70b5a6fe212f0665db79 Mon Sep 17 00:00:00 2001 From: Carlos Oliveira Date: Sat, 11 Apr 2026 00:20:12 -0300 Subject: [PATCH] ci: skip lint/test/build on main, run only docs and release --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2329fa..8df1797 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,7 @@ jobs: lint: name: Lint & Format runs-on: ubuntu-latest + if: github.ref_name != 'main' steps: - uses: actions/checkout@v4 @@ -25,6 +26,7 @@ jobs: name: Tests runs-on: ubuntu-latest needs: lint + if: github.ref_name != 'main' steps: - uses: actions/checkout@v4 @@ -54,6 +56,7 @@ jobs: name: Build Package runs-on: ubuntu-latest needs: test + if: github.ref_name != 'main' steps: - uses: actions/checkout@v4 @@ -73,7 +76,7 @@ jobs: open-pr: name: Open PR to main runs-on: ubuntu-latest - needs: test + needs: [lint, test] if: github.event_name == 'push' && github.ref_name != 'main' permissions: pull-requests: write @@ -105,7 +108,6 @@ jobs: docs: name: Deploy Docs runs-on: ubuntu-latest - needs: test if: github.event_name == 'push' && github.ref_name == 'main' permissions: contents: write @@ -127,7 +129,6 @@ jobs: release: name: Release runs-on: ubuntu-latest - needs: test if: github.event_name == 'push' && github.ref_name == 'main' permissions: contents: write