generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 31
34 lines (32 loc) · 1.13 KB
/
DetectRestAPIClientChanges.yml
File metadata and controls
34 lines (32 loc) · 1.13 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
name: Detect Rest API Client Changes
on: [pull_request]
jobs:
detect-restapi-client-changes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
with:
fetch-depth: '0'
- name: Setup .NET 10.0
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d #v5.0.0
with:
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Run Client Generator
run: |
cd ./src/AWS.Deploy.ServerMode.ClientGenerator
dotnet run --project ./AWS.Deploy.ServerMode.ClientGenerator.csproj
- name: Verify Changed files
uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf #v20.0.4
id: verify-changed-files
with:
files: |
RestAPI.cs
- name: Fail if RestAPI Changes Detected
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
echo "There are changes in RestApi.cs. Make sure to run the generator and commit the updated RestApi.cs."
exit 1