Skip to content

Commit

Permalink
Skip CI run on docs changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Dec 19, 2024
1 parent 1b13488 commit 83d160e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
min_k8s_version: ${{ steps.vars.outputs.min_k8s_version }}
k8s_latest: ${{ steps.vars.outputs.k8s_latest }}
helm_changes: ${{ steps.filter.outputs.charts }}
docs_changes: ${{ steps.filter.outputs.docs }}
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -55,6 +56,11 @@ jobs:
filters: |
charts:
- charts/nginx-gateway-fabric/**/*
docs:
- design/**
- docs/**
- examples/**
- site/**
- name: Output Variables
id: vars
Expand All @@ -78,6 +84,7 @@ jobs:
name: Unit Tests
runs-on: ubuntu-24.04
needs: vars
if: ${{ needs.vars.outputs.docs_changes == 'true' }}
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down Expand Up @@ -109,6 +116,7 @@ jobs:
name: NJS Unit Tests
runs-on: ubuntu-24.04
needs: vars
if: ${{ needs.vars.outputs.docs_changes == 'true' }}
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down Expand Up @@ -267,6 +275,7 @@ jobs:
helm-tests:
name: Helm Tests
needs: [vars, build-oss, build-plus]
if: ${{ needs.vars.outputs.helm_changes == 'true' || github.event_name == 'schedule' }}
strategy:
fail-fast: false
matrix:
Expand All @@ -281,7 +290,6 @@ jobs:
image: ${{ matrix.image }}
k8s-version: ${{ matrix.k8s-version }}
secrets: inherit
if: ${{ needs.vars.outputs.helm_changes == 'true' || github.event_name == 'schedule' }}

publish-helm:
name: Package and Publish Helm Chart
Expand Down

0 comments on commit 83d160e

Please sign in to comment.