Skip to content

Commit 0c1eda1

Browse files
fix for extracting data
1 parent 704e168 commit 0c1eda1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/create-article-from-issue.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ jobs:
4242
- name: Extract information from Issue
4343
id: extract
4444
run: |
45-
ISSUE_BODY="${{ github.event.issue.body }}"
45+
echo "${{ github.event.issue.body }}" > issue_body.txt
4646
47-
FILEID=$(echo "$ISSUE_BODY" | grep -oP '(?<=\*\*Google doc\*\*: ).*' | sed 's|.*\/d/||' | sed 's|/.*||')
48-
AUTHOR=$(echo "$ISSUE_BODY" | grep -oP '(?<=\*\*Profile\*\*: ).*')
49-
TAGS=$(echo "$ISSUE_BODY" | grep -oP '(?<=\*\*Tags\*\*: ).*')
47+
FILEID=$(grep -oP '(?<=\*\*Google doc\*\*: ).*' issue_body.txt | sed 's|.*\/d/||' | sed 's|/.*||')
48+
AUTHOR=$(grep -oP '(?<=\*\*Profile\*\*: ).*' issue_body.txt)
49+
TAGS=$(grep -oP '(?<=\*\*Tags\*\*: ).*' issue_body.txt)
5050
5151
echo "fileid=$FILEID" >> "$GITHUB_OUTPUT"
5252
echo "author=$AUTHOR" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)