skip app-related CI jobs for doc/blog PRs (#3704)
Co-authored-by: angiejones <jones.angie@gmail.com>
This commit is contained in:
@@ -13,9 +13,30 @@ on:
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
docs-only: ${{ steps.filter.outputs.docs-only }}
|
||||||
|
code: ${{ steps.filter.outputs.code }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
|
||||||
|
|
||||||
|
- name: Check for file changes
|
||||||
|
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # pin@v3
|
||||||
|
id: filter
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
docs-only:
|
||||||
|
- 'documentation/**'
|
||||||
|
code:
|
||||||
|
- '!documentation/**'
|
||||||
|
|
||||||
rust-format:
|
rust-format:
|
||||||
name: Check Rust Code Format
|
name: Check Rust Code Format
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: changes
|
||||||
|
if: needs.changes.outputs.code == 'true' || github.event_name != 'pull_request'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
|
||||||
@@ -26,6 +47,8 @@ jobs:
|
|||||||
rust-build-and-test:
|
rust-build-and-test:
|
||||||
name: Build and Test Rust Project
|
name: Build and Test Rust Project
|
||||||
runs-on: goose
|
runs-on: goose
|
||||||
|
needs: changes
|
||||||
|
if: needs.changes.outputs.code == 'true' || github.event_name != 'pull_request'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
|
||||||
@@ -80,6 +103,8 @@ jobs:
|
|||||||
desktop-lint:
|
desktop-lint:
|
||||||
name: Lint Electron Desktop App
|
name: Lint Electron Desktop App
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
needs: changes
|
||||||
|
if: needs.changes.outputs.code == 'true' || github.event_name != 'pull_request'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
|
||||||
@@ -95,6 +120,7 @@ jobs:
|
|||||||
# Faster Desktop App build for PRs only
|
# Faster Desktop App build for PRs only
|
||||||
bundle-desktop-unsigned:
|
bundle-desktop-unsigned:
|
||||||
uses: ./.github/workflows/bundle-desktop.yml
|
uses: ./.github/workflows/bundle-desktop.yml
|
||||||
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
|
needs: changes
|
||||||
|
if: (github.event_name == 'pull_request' || github.event_name == 'merge_group') && (needs.changes.outputs.code == 'true' || github.event_name != 'pull_request')
|
||||||
with:
|
with:
|
||||||
signing: false
|
signing: false
|
||||||
|
|||||||
Reference in New Issue
Block a user