-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.21 KB
/
ci-validate-workflow-paths.yml
File metadata and controls
48 lines (41 loc) · 1.21 KB
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
40
41
42
43
44
45
46
47
48
name: CI Validate OneGround Application Workflow Paths
on:
push:
branches:
- main
paths:
- 'src/**'
- '.github/workflows/ci-validate-workflow-paths.yml'
pull_request:
branches:
- main
workflow_dispatch:
jobs:
validate-workflow-paths:
name: Validate workflow paths
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check for changed files
id: changed-files
uses: ./.github/actions/check-changed-files
with:
paths_to_check: |
src/
.github/workflows/ci-validate-workflow-paths.yml
- name: Setup .NET
if: steps.changed-files.outputs.any_changed == 'true'
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install PowerShell
if: steps.changed-files.outputs.any_changed == 'true'
uses: PSModule/install-powershell@v1
with:
Version: 7.5.0
- name: Validate OneGround application CD workflow paths
if: steps.changed-files.outputs.any_changed == 'true'
shell: pwsh
run: >-
./.github/scripts/Validate-OneGroundCDWorkflowsPaths.ps1