Skip to content

DATA-3438 Add resourceSubtype to data source specification #1626

DATA-3438 Add resourceSubtype to data source specification

DATA-3438 Add resourceSubtype to data source specification #1626

name: Check Requirements for Merge
on:
# note: this workflow does not use secrets or check out code, does not need to be pull_request_target
pull_request:
branches:
- main
types:
- labeled
- unlabeled
env:
label-checks-pass:
jobs:
check_requirements:
name: Check Merge Requirements
runs-on: ubuntu-latest
if: github.repository_owner == 'viamrobotics'
steps:
- name: Check Labels
if: >
contains(github.event.pull_request.labels.*.name, 'protos-compiled')
run: echo "label-checks-pass=true" >> $GITHUB_ENV
- name: Final Checks
if: ${{ !env.label-checks-pass }}
uses: actions/github-script@v6
with:
script: core.setFailed('Merge requirements not met.\n\tLabel checks - ${{ env.label-checks-pass }}')