Refresh TypeScript Playground SDKs #4
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: Refresh TypeScript Playground SDKs | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 16 * * *' # 8am PT / 16:00 UTC - same schedule as manifest refresh | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| generate-and-pr: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository_owner == 'microsoft' }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0 | |
| with: | |
| global-json-file: global.json | |
| - name: Setup Node.js | |
| uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0 | |
| with: | |
| node-version: 20.x | |
| - name: Run refreshTypeScriptSdks script | |
| shell: pwsh | |
| run: | | |
| ./eng/refreshTypeScriptSdks.ps1 | |
| - name: Create or update pull request | |
| uses: dotnet/actions-create-pull-request@e8d799aa1f8b17f324f9513832811b0a62f1e0b1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: update-typescript-playground-sdks | |
| base: main | |
| commit-message: "[Automated] Update TypeScript Playground AppHost SDKs" | |
| labels: | | |
| area-app-model | |
| area-engineering-systems | |
| title: "[Automated] Update TypeScript Playground AppHost SDKs" | |
| body: "Auto-generated update to refresh the TypeScript playground AppHost SDKs." |