From 5e6d11b62231433dc96ec946467fc1dee6b9988c Mon Sep 17 00:00:00 2001 From: codycooperross <50597551+codycooperross@users.noreply.github.com> Date: Tue, 23 Jul 2024 16:06:17 -0400 Subject: [PATCH] Create create_label.yml --- .github/workflows/create_label.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/create_label.yml diff --git a/.github/workflows/create_label.yml b/.github/workflows/create_label.yml new file mode 100644 index 0000000..efd8930 --- /dev/null +++ b/.github/workflows/create_label.yml @@ -0,0 +1,17 @@ +name: Create labels +on: + label: + types: created +jobs: + label_issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - run: gh label create "$NAME" -c $COLOR -d "$DESCRIPTION" -r datacite/product-suggestions-triage --force + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + GH_REPO: ${{ github.repository }} + NAME: ${{ github.event.label.name }} + COLOR: ${{ github.event.label.color }} + DESCRIPTION: ${{ github.event.label.description }}