mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
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
|
||||
|
||||
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:
|
||||
name: Check Rust Code Format
|
||||
runs-on: ubuntu-latest
|
||||
needs: changes
|
||||
if: needs.changes.outputs.code == 'true' || github.event_name != 'pull_request'
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
|
||||
@@ -26,6 +47,8 @@ jobs:
|
||||
rust-build-and-test:
|
||||
name: Build and Test Rust Project
|
||||
runs-on: goose
|
||||
needs: changes
|
||||
if: needs.changes.outputs.code == 'true' || github.event_name != 'pull_request'
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
|
||||
@@ -80,6 +103,8 @@ jobs:
|
||||
desktop-lint:
|
||||
name: Lint Electron Desktop App
|
||||
runs-on: macos-latest
|
||||
needs: changes
|
||||
if: needs.changes.outputs.code == 'true' || github.event_name != 'pull_request'
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
|
||||
@@ -95,6 +120,7 @@ jobs:
|
||||
# Faster Desktop App build for PRs only
|
||||
bundle-desktop-unsigned:
|
||||
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:
|
||||
signing: false
|
||||
|
||||
Reference in New Issue
Block a user