Skip to content

Commit

Permalink
actually invoke python...
Browse files Browse the repository at this point in the history
  • Loading branch information
eKathleenCarter committed Oct 28, 2024
1 parent 3e95ae8 commit 2ff1393
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/labe-predicate-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}")
Expand All @@ -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 }}")
Expand All @@ -59,4 +62,5 @@ jobs:
issue = repo.get_issue(number=issue_number)
assignee = "eKathleenCarter"
issue.add_to_assignees(assignee)
issue.add_to_assignees(assignee)
"

0 comments on commit 2ff1393

Please sign in to comment.