Update CDK Bootstrap Template to Version 29 #429
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 Doc Generator Changes | |
| on: [pull_request] | |
| permissions: | |
| id-token: write | |
| jobs: | |
| detect-documentation-changes: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df #v4.2.1 | |
| with: | |
| role-to-assume: ${{ secrets.CI_MAIN_TESTING_ACCOUNT_ROLE_ARN }} | |
| role-duration-seconds: 7200 | |
| aws-region: us-west-2 | |
| - 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.DocGenerator | |
| dotnet run --project ./AWS.Deploy.DocGenerator.csproj | |
| - name: Check For Git Untracked Changes | |
| id: gitcheck | |
| shell: pwsh | |
| run: | | |
| $newFiles=$(git ls-files --others --exclude-standard | wc -l) | |
| $modifiedFiles=$(git diff --name-only | wc -l) | |
| "newFiles=$newFiles" >> $env:GITHUB_OUTPUT | |
| "modifiedFiles=$modifiedFiles" >> $env:GITHUB_OUTPUT | |
| - name: Fail If New Files Detected | |
| if: steps.gitcheck.outputs.newFiles != 0 | |
| run: | | |
| echo "New files have been generated after running 'AWS.Deploy.DocGenerator'. Make sure to add the new files to your working branch." | |
| exit 1 | |
| - name: Fail If Modified Files Detected | |
| if: steps.gitcheck.outputs.modifiedFiles != 0 | |
| run: | | |
| echo "Updated files have been generated after running 'AWS.Deploy.DocGenerator'. Make sure to commit the updated files to your working branch." | |
| exit 1 |