File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 11[rule .unused-parameter ]
2- Disabled = true
2+ disabled = true
Original file line number Diff line number Diff line change 22
33set -o pipefail
44
5- function test_workflow { cat .github/workflows/test.yaml ; }
6- function run_commands { yq ' .jobs.test.steps[] | select(.name == "Run *") | .run' ; }
5+ function test_workflow { cat .github/workflows/test.yaml ; }
6+ function test_commands { yq ' .jobs.test.steps[] | select(.name == "Run *") | .run' ; }
77
8- test_workflow | run_commands | while read COMMAND
8+ test_workflow | test_commands | while read COMMAND
99do
1010 echo ${COMMAND}
1111 TEMPFILE=$( mktemp)
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -o pipefail
4+
5+ function test_workflow { cat .github/workflows/test.yaml ; }
6+ function install_commands { yq ' .jobs.test.steps[] | select(.name == "Install tools") | .run' ; }
7+
8+ test_workflow | install_commands | while read COMMAND
9+ do
10+ echo ${COMMAND}
11+ TEMPFILE=$( mktemp)
12+ eval ${COMMAND} > ${TEMPFILE} \
13+ && { rm ${TEMPFILE} ; } \
14+ || { cat ${TEMPFILE} ; rm ${TEMPFILE} ; exit 1; }
15+ done
You can’t perform that action at this time.
0 commit comments