Skip to content

Commit d20ecd9

Browse files
committed
Add fallback path
1 parent 80f6a68 commit d20ecd9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/test-workflow.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ jobs:
1919
- id: 'step-1'
2020
name: 'Execute script'
2121
run: 'rm ''.github/workflows/test-workflow.yaml'' && ''.github/workflows/test-workflow.main.kts'''
22+
- id: 'start-server'
23+
if: "steps.step-1.outcome != 'success'"
24+
run: 'docker run krzema12/github-workflows-kt-jit-binding-server &'
25+
- id: 'wait-for-server'
26+
if: "steps.step-1.outcome != 'success'"
27+
run: 'sleep 30'
28+
- id: 'replace-server-url-in-script'
29+
if: "steps.step-1.outcome != 'success'"
30+
run: "sed -i -e 's/https:\/\/bindings.krzeminski.it/http:\/\/localhost:8080/g' .github/workflows/test-workflow.main.kts"
31+
- id: 'execute-script-again'
32+
if: "steps.step-1.outcome != 'success'"
33+
run: 'rm ''.github/workflows/test-workflow.yaml'' && ''.github/workflows/test-workflow.main.kts'''
2234
- id: 'step-2'
2335
name: 'Consistency check'
2436
run: 'git diff --exit-code ''.github/workflows/test-workflow.yaml'''

0 commit comments

Comments
 (0)