Skip to content

Merge remote-tracking branch 'upstream/main' #11

Merge remote-tracking branch 'upstream/main'

Merge remote-tracking branch 'upstream/main' #11

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

Check failure on line 25 in .github/workflows/arm-modeling-review.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/arm-modeling-review.yaml

Invalid workflow file

You have an error in your yaml syntax on line 25
# 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 }}"