-
Notifications
You must be signed in to change notification settings - Fork 54
44 lines (38 loc) · 1.7 KB
/
automation-data-api-differ.yaml
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
---
name: Detect changes to the API Definitions (Resource Manager)
on:
pull_request:
types: ['opened', 'synchronize']
paths:
- 'api-definitions/**' # to detect changes when the API Definitions are updated
- 'scripts/automation-determine-changes-to-api-definitions.sh' # to handle changes to the script
- 'tools/data-api/**' # to detect changes when the Data API is updated
- 'tools/data-api-differ/**' # to detect changes when the Data API Differ is updated
jobs:
detect-changes-to-the-api-definitions:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
fetch-depth: 0
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: ./.go-version
- name: Detect Changes
run: |
./scripts/automation-determine-changes-to-api-definitions.sh resource-manager outputs/
- name: Post Comment containing Breaking Changes
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2.5.0
with:
filePath: outputs/resource-manager-breaking-changes.md
- name: Post Comment containing Changes
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2.5.0
with:
filePath: outputs/resource-manager-changes.md
- name: Post Comment with New Static Identifiers
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2.5.0
with:
filePath: outputs/resource-manager-static-identifiers.md