Skip to content

Commit 6bb6c17

Browse files
committed
.jbang scripts should not be included inside themselves
1 parent 13e1d1e commit 6bb6c17

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/tests-code.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,12 +555,16 @@ jobs:
555555
# We modify the JBang scripts directly to avoid issues with relative paths
556556
for f in ${{ steps.changed-jablib-files.outputs.all_changed_files }}; do
557557
case "$f" in
558+
.jbang/*)
559+
# skip scripts
560+
continue
561+
;;
558562
jablib-examples/*)
559563
# skip scripts
560564
continue
561565
;;
562566
jabkit/*)
563-
# only JabKit needs its modified sources
567+
# only JabKit needs its modified sources if jabkit was modified
564568
if [ "${{ matrix.script }}" != ".jbang/JabKitLauncher.java" ]; then
565569
continue
566570
fi

0 commit comments

Comments
 (0)