Updates github-config #463
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Set / Validate PR Labels | |
on: | |
pull_request_target: | |
branches: | |
- main | |
types: | |
- synchronize | |
- opened | |
- reopened | |
- labeled | |
- unlabeled | |
concurrency: pr_labels_${{ github.event.number }} | |
jobs: | |
autolabel: | |
name: Ensure Minimal Semver Labels | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check Minimal Semver Labels | |
uses: mheap/github-action-required-labels@v3 | |
with: | |
count: 1 | |
labels: semver:major, semver:minor, semver:patch | |
mode: exactly | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Auto-label Semver | |
if: ${{ failure() }} | |
uses: paketo-buildpacks/github-config/actions/pull-request/auto-semver-label@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} |