Skip to content

Remove unnecessary use of resource type #5

Remove unnecessary use of resource type

Remove unnecessary use of resource type #5

name: TypeSpec Validation
on: pull_request
permissions:
contents: read
jobs:

Check failure on line 8 in .github/workflows/typespec-validation.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/typespec-validation.yaml

Invalid workflow file

You have an error in your yaml syntax on line 8
typespec-validation:
name: TypeSpec Validation
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
# Checkout all history for all branches. Required to merge origin/main.
fetch-depth: 0
- name: git merge origin/main
run: git -c user.name="azure-sdk" -c user.email="[email protected]" merge -Xours origin/main
- name: Setup Node and install deps
uses: ./.github/actions/setup-node-install-deps
- name: Validate Impacted Specs
run: |
# Keep processing when errors are written. Nonzero exit will mark the
# step as failed.
$ErrorActionPreference = 'Continue'
# Only "main" and "RPSaaSMaster" should validate all specs if core files change
$ignoreCoreFiles = -not (@('main', 'RPSaaSMaster') -contains $Env:GITHUB_BASE_REF)
./eng/scripts/TypeSpec-Validation.ps1 -GitClean -Verbose -BaseCommitish:HEAD~1 -HeadCommitish:HEAD~2
shell: pwsh