Skip to content

Commit 5e7114a

Browse files
authored
Update create_conflicts.yml
potential error. will always fall back to code
1 parent e15c80b commit 5e7114a

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

.github/workflows/create_conflicts.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,8 @@ jobs:
2828
body="${{ github.event.issue.body }}"
2929
3030
# Extract dropdown value and scenario file (if typed)
31-
challenge_type=$(echo "$body" | grep -A2 "challenge_type" | grep 'value:' | sed 's/^[[:space:]]*value:[[:space:]]*//' | head -n1)
32-
33-
if [ -z "$challenge_type" ]; then
34-
challenge_type=$(echo "$body" | grep -A1 "What type of challenge do you want?" | tail -n1 | tr -d '\r')
35-
fi
36-
37-
# Extract scenario_file (input)
38-
scenario_file=$(echo "$body" | grep -A2 "scenario_file" | grep 'value:' | sed 's/^[[:space:]]*value:[[:space:]]*//')
39-
40-
if [ -z "$scenario_file" ]; then
41-
scenario_file=$(echo "$body" | grep -A1 "Scenario file name" | tail -n1 | tr -d '\r')
42-
fi
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')
4333
4434
# Set fallback defaults
4535
fallback_code="code_scenario.rs"

0 commit comments

Comments
 (0)