From 6b3d25c01c6e5bf719d82e3384622f504ddb91fb Mon Sep 17 00:00:00 2001 From: codycooperross <50597551+codycooperross@users.noreply.github.com> Date: Fri, 26 Jul 2024 16:53:17 -0400 Subject: [PATCH] Bug fix --- .github/scripts/manage_label.py | 8 +------- .github/workflows/update_label.yml | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) 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 }}