Add Dependabot configuration for .NET SDK updates #39
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: Regenerate all code | |
| on: | |
| workflow_dispatch: | |
| issue_comment: | |
| types: [created] | |
| jobs: | |
| build: | |
| if: github.event_name == 'workflow_dispatch' || (github.event_name == 'issue_comment' && github.event.issue.pull_request && github.event.comment.body == 'regen') | |
| timeout-minutes: 120 | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout branch | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup node 22 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '22' | |
| - name: Setup .net core sdk | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: '9.0.x' | |
| - name: Install packages | |
| run: | | |
| npm ci | |
| - name: Generate code | |
| shell: pwsh | |
| run: | | |
| ./eng/Generate.ps1 | |
| - name: Commit generated code | |
| run: | | |
| git config --global user.name 'actions-user' | |
| git config --global user.email '[email protected]' | |
| git add . | |
| git commit -m "Regenerate all code (any successful run even without change will have a new commit)" | |
| git push |