Skip to content

Commit

Permalink
Create parse_issue.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanferrari authored Jun 18, 2024
1 parent 1443bb9 commit 3a55517
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions parse_issue.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import os
import re

issue_body = os.getenv('ISSUE_BODY')

lecture_number = re.search(r'Lecture Number: (\d+)', issue_body).group(1).strip()
demo = re.search(r'Demo: (.+)', issue_body).group(1).strip()
slides = re.search(r'Slides: (.+)', issue_body).group(1).strip()

print(f"::set-env name=Lecture_Number::{lecture_number}")
print(f"::set-env name=Demo::{demo}")
print(f"::set-env name=Slides::{slides}")

0 comments on commit 3a55517

Please sign in to comment.