Skip to content

Commit b02a5c0

Browse files
authored
Update create_conflicts.yml
1 parent cdae3ad commit b02a5c0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/create_conflicts.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ jobs:
2828
body="${{ github.event.issue.body }}"
2929
3030
# Extract dropdown value and scenario file (if typed)
31-
challenge_type=$(echo "$body" | grep -A1 "challenge type" | tail -n1 | tr -d '\r')
32-
scenario_file=$(echo "$body" | grep -A1 "Scenario file name" | tail -n1 | tr -d '\r')
31+
challenge_type=$(echo "$body" | grep -A2 "challenge type" | sed '/^$/d' | tail -n1 | tr -d '\r')
32+
scenario_file=$(echo "$body" | grep -A2 "Scenario file name" | sed '/^$/d' | tail -n1 | tr -d '\r')
33+
3334
3435
# Set fallback defaults
3536
fallback_code="code_scenario.rs"

0 commit comments

Comments
 (0)