Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Add additional CBOM tools to the tool center #17

Add additional CBOM tools to the tool center

Add additional CBOM tools to the tool center #17

# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: PR Label ToolCenter
on:
pull_request:
# see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
types:
- opened
branches:
- 'master'
paths:
- '_data/tools.yml'
permissions:
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
pull-requests: write
jobs:
label_issues:
runs-on: ubuntu-latest
steps:
- name: label the PR
# see https://docs.github.com/en/actions/managing-issues-and-pull-requests/adding-labels-to-issues#creating-the-workflow
run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
LABELS: 'tool-center'