Skip to content

Merge main -> dev after docs-only "release" #435

Merge main -> dev after docs-only "release"

Merge main -> dev after docs-only "release" #435

name: Detect Rest API Client Changes
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Setup .NET Core 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.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/[email protected]
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