forked from mavlink/qgroundcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 913 Bytes
/
Copy path_detect-changes.yml
File metadata and controls
39 lines (35 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Detect Changes
on:
workflow_call:
inputs:
platform:
description: 'Platform to detect changes for'
required: true
type: string
outputs:
should_build:
description: 'Whether relevant files changed'
value: ${{ jobs.detect.outputs.should_build }}
concurrency:
group: detect-changes-${{ inputs.platform }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
detect:
name: Detect Changes
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
should_build: ${{ steps.detect.outputs.any }}
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Detect changes
id: detect
uses: ./.github/actions/detect-changes
with:
platform: ${{ inputs.platform }}