Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
codycooperross committed Jul 26, 2024
1 parent 3576261 commit 6b3d25c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions .github/scripts/manage_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 6b3d25c

Please sign in to comment.