From 2ff1393dc37f36efe8c6a6e42ccc44e36c09b416 Mon Sep 17 00:00:00 2001 From: Kathleen Carter <163005214+eKathleenCarter@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:14:13 -0400 Subject: [PATCH] actually invoke python... --- .github/workflows/labe-predicate-changes.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/labe-predicate-changes.yml b/.github/workflows/labe-predicate-changes.yml index 5266515..f326ec8 100644 --- a/.github/workflows/labe-predicate-changes.yml +++ b/.github/workflows/labe-predicate-changes.yml @@ -22,12 +22,13 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install PyGithub + pip install -r requirements.txt - name: Label PR if predicates changed env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + python -c " from github import Github g = Github("${{ secrets.GITHUB_TOKEN }}") @@ -45,12 +46,14 @@ jobs: if any(keyword.lower() in item.title.lower() or keyword.lower() in item.body.lower() for keyword in keywords): item.add_to_labels(label_name) # Add the label + " - name: Assign if Labeled env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} if: github.event.action == 'labeled' && github.event.label.name == 'Biological Context QC' run: | + python -c " from github import Github g = Github("${{ secrets.GITHUB_TOKEN }}") @@ -59,4 +62,5 @@ jobs: issue = repo.get_issue(number=issue_number) assignee = "eKathleenCarter" - issue.add_to_assignees(assignee) \ No newline at end of file + issue.add_to_assignees(assignee) + " \ No newline at end of file