Skip to content

Commit d449693

Browse files
committed
Better scoping
1 parent 0f44f73 commit d449693

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/ci-Resources.OperatingSystem.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on:
55
branches: [ 'main*', 'instrumentation*', 'exporter*', 'extensions*' ]
66
paths:
77
- 'modules/Resources.OperatingSystem/**'
8+
- '.github/workflows/ci-Resources.OperatingSystem.yml'
89
pull_request:
910
branches: [ 'main*', 'instrumentation*', 'exporter*', 'extensions*' ]
1011
paths:
1112
- 'modules/Resources.OperatingSystem/**'
13+
- '.github/workflows/ci-Resources.OperatingSystem.yml'
1214

1315
jobs:
1416
resources-operatingsystem:

.github/workflows/ci-Solution.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: build-test
2+
3+
on:
4+
push:
5+
branches: [ 'main2*', 'instrumentation*', 'exporter*', 'extensions*' ]
6+
paths:
7+
- 'Directory*.props'
8+
- 'Directory*.targets'
9+
- 'build/*.props'
10+
- 'build/*.targets'
11+
- 'global.json'
12+
- '.github/workflows/*-module.yml'
13+
- '.github/workflows/Dotnet.*.yml'
14+
pull_request:
15+
branches: [ 'main2*', 'instrumentation*', 'exporter*', 'extensions*' ]
16+
paths:
17+
- 'Directory*.props'
18+
- 'Directory*.targets'
19+
- 'build/*.props'
20+
- 'build/*.targets'
21+
- 'global.json'
22+
- '.github/workflows/*-module.yml'
23+
- '.github/workflows/Dotnet.*.yml'
24+
25+
jobs:
26+
resources-solution:
27+
uses: ./.github/workflows/build-module.yml
28+
29+
_resources-solution:
30+
uses: ./.github/workflows/deploy-module.yml
31+
if: ${{ github.event_name == 'push' }}
32+
33+
build-test:
34+
needs: [
35+
resources-solution,
36+
_resources-solution
37+
]
38+
if: always() && !cancelled()
39+
runs-on: ubuntu-22.04
40+
steps:
41+
- run: |
42+
if ( ${{ contains(needs.*.result, 'failure') }} == true ); then echo 'build failed ✗'; exit 1; else echo 'build complete ✓'; fi

0 commit comments

Comments
 (0)