diff --git a/.github/scripts/manage_label.py b/.github/scripts/manage_label.py index ec442b9..2f0dd86 100644 --- a/.github/scripts/manage_label.py +++ b/.github/scripts/manage_label.py @@ -34,15 +34,9 @@ def delete_label_in_dest_repo(label_name): else: print("Failed") -print(EVENT_TYPE) - if EVENT_TYPE == "edited": - print(FROM_NAME) - print(DEST_REPO) - print(NAME) - print(NEW_NAME) from_name = FROM_NAME if FROM_NAME else NAME - print(from_name) + dest_label = get_label_in_repo(from_name, DEST_REPO) local_label = get_label_in_repo(NEW_NAME, GH_REPO) diff --git a/.github/workflows/update_label.yml b/.github/workflows/update_label.yml index 9bc1d21..a868f80 100644 --- a/.github/workflows/update_label.yml +++ b/.github/workflows/update_label.yml @@ -20,7 +20,7 @@ jobs: - name: Manage other labels env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GH_REPO: ${{ github.repository }} FROM_NAME: ${{ github.event.changes.name.from }} NAME: ${{ github.event.label.name }}