Skip to content

Commit

Permalink
Create update_label.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
codycooperross authored Jul 23, 2024
1 parent a0ca723 commit 26eb7a2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/update_label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Update labels
on:
label:
types: edited
jobs:
create_labels:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: gh label edit "$NAME" --name "$NEW_NAME" -c $NEW_COLOR -d "$NEW_DESCRIPTION" -R datacite/product-suggestions-triage --force
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPO: ${{ github.repository }}
NAME: ${{ github.event.label.name }}
NEW_NAME: ${{ github.event.changes.color }}
NEW_COLOR: ${{ github.event.changes.color }}
NEW_DESCRIPTION: ${{ github.event.changes.description }}

0 comments on commit 26eb7a2

Please sign in to comment.