Add minimal Microsoft.Barbie RP (no lease) #15
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: ARM Modeling Review | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - RPSaaSMaster | ||
| types: | ||
| # default | ||
| - opened | ||
| - synchronize | ||
| - reopened | ||
| # re-run if base branch is changed, since previous merge commit may generate incorrect diff | ||
| - edited | ||
| paths: | ||
| - "specification/**/resource-manager/**" | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| arm-modeling-review: | ||
| name: ARM Modeling Review | ||
| runs-on: ubuntu-slim | ||
| <<<<<<< HEAD | ||
| # TODO: Set to true to enable new RP detection | ||
| if: true | ||
| ======= | ||
| # TODO: Remove to enable new RP detection | ||
| if: fromJson('false') | ||
| >>>>>>> tejaswi/main | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| <<<<<<< HEAD | ||
| fetch-depth: 0 # Fetch all history for merge-base calculation and diffing | ||
| sparse-checkout: | | ||
| .github | ||
| specification | ||
| eng | ||
| ======= | ||
| fetch-depth: 2 | ||
| >>>>>>> tejaswi/main | ||
| - name: Install dependencies for github-script actions | ||
| uses: ./.github/actions/install-deps-github-script | ||
| - name: ARM Modeling Review | ||
| id: detect | ||
| uses: actions/github-script@v8 | ||
| with: | ||
| script: | | ||
| const { default: armModelingReview } = | ||
| <<<<<<< HEAD | ||
| await import('${{ github.workspace }}/.github/workflows/src/arm-lease-validation/detect-new-resource-provider.js'); | ||
| const result = await armModelingReview({ context, core }); | ||
| return result; | ||
| ======= | ||
| await import('${{ github.workspace }}/.github/workflows/src/arm-modeling-review/arm-modeling-review.js'); | ||
| return await armModelingReview({ context, core }); | ||
| >>>>>>> tejaswi/main | ||
| - name: Upload artifact for ARMModelingReviewRequired label | ||
| if: always() && steps.detect.outputs.result && fromJson(steps.detect.outputs.result).labelActions['ARMModelingReviewRequired'] != 'none' | ||
| uses: ./.github/actions/add-label-artifact | ||
| with: | ||
| name: "ARMModelingReviewRequired" | ||
| value: "${{ fromJson(steps.detect.outputs.result).labelActions['ARMModelingReviewRequired'] == 'add' }}" | ||
| - name: Upload artifact for ARMModelingSignedOff label | ||
| if: always() && steps.detect.outputs.result && fromJson(steps.detect.outputs.result).labelActions['ARMModelingSignedOff'] != 'none' | ||
| uses: ./.github/actions/add-label-artifact | ||
| with: | ||
| name: "ARMModelingSignedOff" | ||
| value: "${{ fromJson(steps.detect.outputs.result).labelActions['ARMModelingSignedOff'] == 'add' }}" | ||
| - name: Upload artifact for ARMModelingAutoSignedOff label | ||
| if: always() && steps.detect.outputs.result && fromJson(steps.detect.outputs.result).labelActions['ARMModelingAutoSignedOff'] != 'none' | ||
| uses: ./.github/actions/add-label-artifact | ||
| with: | ||
| name: "ARMModelingAutoSignedOff" | ||
| value: "${{ fromJson(steps.detect.outputs.result).labelActions['ARMModelingAutoSignedOff'] == 'add' }}" | ||
| - name: Upload artifact for issue_number | ||
| uses: ./.github/actions/add-empty-artifact | ||
| with: | ||
| name: issue-number | ||
| value: "${{ github.event.pull_request.number }}" | ||