diff --git a/.github/workflows/conventional-commit-check.yml b/.github/workflows/conventional-commit-check.yml index ad0164206..86579ddd8 100644 --- a/.github/workflows/conventional-commit-check.yml +++ b/.github/workflows/conventional-commit-check.yml @@ -84,3 +84,11 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: gh --repo ${{ github.event.repository.full_name }} pr edit --remove-label 'S-conventions-not-followed' ${{ github.event.pull_request.number }} + + - name: Check for label + if: ${{ github.event.action == 'labeled' }} + run: echo "Label 'your-desired-label' added." + + - name: Handle other cases + if: ${{ github.event.action != 'labeled' }} + run: echo "Error - Please add label to your Pull Request." diff --git a/.github/workflows/label-check.yml b/.github/workflows/label-check.yml new file mode 100644 index 000000000..3e64432dd --- /dev/null +++ b/.github/workflows/label-check.yml @@ -0,0 +1,17 @@ +name: Check Label + +on: + pull_request: + types: [labeled, unlabeled] + +jobs: + check-label: + runs-on: ubuntu-latest + steps: + - name: Check for label + if: ${{ github.event.action == 'labeled' }} + run: echo "Label 'your-desired-label' added." + + - name: Handle other cases + if: ${{ github.event.action != 'labeled' }} + run: echo "Error - Please add label to your Pull Request."