Skip to content

Commit f18bd84

Browse files
committed
Update pipelines
1 parent 1f65bd8 commit f18bd84

File tree

2 files changed

+24
-18
lines changed

2 files changed

+24
-18
lines changed

.github/workflows/pr_labeler.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "PR Labeling"
22
on:
33
pull_request_target:
44
types: [opened, closed, synchronize, reopened, edited, ready_for_review]
5-
5+
66
permissions:
77
contents: read
88
pull-requests: write

.github/workflows/validation_mrtk3.yaml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,36 @@ on:
44
push:
55
branches:
66
- main
7-
- 'feature/*'
7+
- "feature/*"
88
pull_request:
99

1010
jobs:
1111
validation:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v3
1616

17-
- name: Get Pull Request changes
18-
if: github.event_name == 'pull_request'
19-
run: |
20-
${{ github.workspace }}/Pipelines/Scripts/gitchanges.ps1 -TargetBranch '${{ github.base_ref }}' -OutputFile '${{ runner.temp }}/build/changed_files.txt' -RepoRoot '${{ github.workspace }}'
21-
shell: pwsh
17+
- name: Get Pull Request changes
18+
if: github.event_name == 'pull_request'
19+
run: |
20+
${{ github.workspace }}/Pipelines/Scripts/gitchanges.ps1 -TargetBranch '${{ github.base_ref }}' -OutputFile '${{ runner.temp }}/build/changed_files.txt' -RepoRoot '${{ github.workspace }}'
21+
shell: pwsh
2222

23-
- name: Scoped code validation
24-
if: github.event_name == 'pull_request'
25-
run: |
26-
${{ github.workspace }}/Pipelines/Scripts/validatecode.ps1 -Directory '${{ github.workspace }}' -ChangesFile '${{ runner.temp }}/build/changed_files.txt'
27-
shell: pwsh
23+
- name: Scoped code validation
24+
if: github.event_name == 'pull_request'
25+
run: |
26+
${{ github.workspace }}/Pipelines/Scripts/validatecode.ps1 -Directory '${{ github.workspace }}' -ChangesFile '${{ runner.temp }}/build/changed_files.txt'
27+
shell: pwsh
2828

29-
- name: Global code validation
30-
if: github.event_name == 'push'
31-
run: |
32-
${{ github.workspace }}/Pipelines/Scripts/validatecode.ps1 -Directory '${{ github.workspace }}'
33-
shell: pwsh
29+
- name: Global code validation
30+
if: github.event_name == 'push'
31+
run: |
32+
${{ github.workspace }}/Pipelines/Scripts/validatecode.ps1 -Directory '${{ github.workspace }}'
33+
shell: pwsh
34+
35+
- name: Check changelogs
36+
if: github.event_name == 'pull_request'
37+
run: |
38+
${{ github.workspace }}/Pipelines/Scripts/check-changelogs.ps1 -ChangesFile '${{ runner.temp }}/build/changed_files.txt'
39+
shell: pwsh

0 commit comments

Comments
 (0)