Skip to content

[PAGOPA-1075] feat: add enhancement for /info API #16

[PAGOPA-1075] feat: add enhancement for /info API

[PAGOPA-1075] feat: add enhancement for /info API #16

name: Check PR
# Controls when the workflow will run
on:
pull_request_target:
branches:
- main
types: [ opened, labeled, unlabeled, reopened ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
name: Check Labels
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Verify PR Labels
uses: jesusvasquez333/verify-pr-label-action@v1.4.0
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
valid-labels: 'bug, enhancement, breaking-change, ignore-for-release'
pull-request-number: '${{ github.event.pull_request.number }}'
- name: Label Check
if: ${{ !contains(github.event.pull_request.labels.*.name, 'breaking-change') && !contains(github.event.pull_request.labels.*.name, 'enhancement') && !contains(github.event.pull_request.labels.*.name, 'bug') && !contains(github.event.pull_request.labels.*.name, 'ignore-for-release') }}
uses: actions/github-script@v3
with:
script: |
core.setFailed('Missing required labels')