name: On PR Open
on:
  pull_request:
    branches:
      - release/**

jobs:
  main:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Actions
        uses: actions/checkout@v2
        with:
          repository: 'microsoft/azuredatastudio'
          ref: main
          path: ./actions
      - name: Install Actions
        run: npm install --production --prefix ./actions/build/actions

      - name: Run Port Labeler
        uses: ./actions/build/actions/auto-labeler
        with:
          label: "Port Request"
