build(deps): bump actions/setup-python from 5.6.0 to 6.0.0 #793
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 #v4.3.1 | |
| 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 |