Skip to content

Update labels

Update labels #10

Workflow file for this run

name: Update labels
on:
label:
types: edited
jobs:
update_labels:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: gh label edit "$NAME" -n "$NEW_NAME" -c $NEW_COLOR -d "$NEW_DESCRIPTION" -R datacite/product-suggestions-triage
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPO: ${{ github.repository }}
NAME: ${{ github.event.changes.name.from }}
NEW_NAME: "${{ github.event.label.name }}"
NEW_COLOR: "${{ github.event.label.color }}"
NEW_DESCRIPTION: "${{ github.event.label.description }}"