File tree Expand file tree Collapse file tree 2 files changed +7
-48
lines changed
Expand file tree Collapse file tree 2 files changed +7
-48
lines changed Original file line number Diff line number Diff line change 7575 with :
7676 cmd : actionlint
7777
78+ - name : Check for strings that should not be used in Splice
79+ uses : ./.github/actions/nix/run_bash_command_in_nix
80+ with :
81+ cmd : ./scripts/check-repo-names.sh
82+
7883 - name : SBT-based static checks
7984 uses : ./.github/actions/sbt/execute_sbt_command
8085 with :
Original file line number Diff line number Diff line change 77
88set -euo pipefail
99
10- SPLICE_ROOT=$( git rev-parse --show-toplevel )
11- copy_script=" scripts/copy-to-splice.sh"
1210rename_script=" scripts/check-repo-names.sh"
13- if [[ -f " $SPLICE_ROOT /$copy_script " ]]; then
14- in_copy_src=yes
15- else
16- in_copy_src=no
17- fi
1811
1912function check_patterns_locally() {
2013 # removing NEVERMATCHES alternative causes these to never match
@@ -63,6 +56,7 @@ function check_patterns_locally() {
6356 ' cluster/stacks'
6457 ' cluster/images/LICENSE'
6558 ' expected.json'
59+ ' README.md'
6660 )
6761
6862 local exception exceptions_args=()
@@ -97,44 +91,4 @@ function check_patterns_locally() {
9791 fi
9892}
9993
100- function setup_temp_splice() {
101- local src=" $1 " tempsplice
102- tempsplice=" $( mktemp -d) "
103- cd " $src "
104- local script_prefix
105- case $in_copy_src in
106- yes) script_prefix=;;
107- no) script_prefix=' direnv exec .' ;;
108- esac
109- $script_prefix " $copy_script " " $tempsplice "
110- cd " $tempsplice "
111- }
112-
113- function check_patterns() {
114- local optstring
115- case " $in_copy_src " in
116- yes)
117- optstring=' h'
118- setup_temp_splice " $SPLICE_ROOT " ;;
119- no) optstring=' hs:' ;;
120- esac
121-
122- while getopts " $optstring " arg; do
123- case " $arg " in
124- h)
125- echo ' Options: [-s SPLICE_REPO]
126- -s: Run copy-to-splice from SPLICE_REPO first, and scan the result' 1>&2
127- exit 0;;
128- s)
129- if [[ ! -d $OPTARG ]]; then
130- echo " -s requires a splice repo directory" 1>&2
131- exit 1
132- fi
133- setup_temp_splice " $OPTARG " ;;
134- :|? ) exit 1;;
135- esac
136- done
137- check_patterns_locally
138- }
139-
140- check_patterns " $@ "
94+ check_patterns_locally
You can’t perform that action at this time.
0 commit comments