SDK Generation for MySQL FlexibleServers TypeSpec Project (API Version 2024-12-30) #42106
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: TypeSpec Requirement | |
on: | |
pull_request: | |
types: | |
# default | |
- opened | |
- synchronize | |
- reopened | |
# re-run if base branch is changed, since previous merge commit may generate incorrect diff | |
- edited | |
permissions: | |
contents: read | |
jobs: | |
TypeSpec-Requirement: | |
name: TypeSpec Requirement | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Required since "HEAD^" is passed to TypeSpec-Requirement.ps1 | |
fetch-depth: 2 | |
- name: Setup Node and install deps | |
uses: ./.github/actions/setup-node-install-deps | |
- run: | | |
eng/scripts/TypeSpec-Requirement.ps1 ` | |
-BaseCommitish HEAD^ ` | |
-HeadCommitish HEAD ` | |
id: tsr-ps1 | |
shell: pwsh | |
# Always add label artifact, even if "brownfield=false", to ensure label is removed when necessary | |
- uses: ./.github/actions/add-label-artifact | |
name: Upload artifact with results | |
with: | |
name: "brownfield" | |
value: "${{ steps.tsr-ps1.outputs.brownfield == 'true' }}" |