From 62076f54b484d041f37c2feac0fbb51b09f5e9a4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 10 Jul 2026 15:27:04 +0200 Subject: [PATCH 1/2] Avoid using `-c` option for GAP It was only introduced in GAP 4.11, so running this action with older GAP versions causes problems. --- action.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index a5d0cef..948110f 100644 --- a/action.yml +++ b/action.yml @@ -69,7 +69,12 @@ runs: SOURCE_DATE_EPOCH: 0 # prevent time stamps in generated PDF run: | if [ -f "makedoc.g" ]; then - $GAP -c 'PushOptions(rec(relativePath:="../../..")); Read("makedoc.g"); QUIT;' 2>&1 | tee $RUNNER_TEMP/output.log + cat > $RUNNER_TEMP/__DOC_MAKER__.g <&1 | tee $RUNNER_TEMP/output.log elif [ -x "doc/make_doc" ]; then # If the package is called , then the script # most likely assumes that it has been called from the within the @@ -139,9 +144,10 @@ runs: fi; od; od; + QUIT; EOF - $GAP $RUNNER_TEMP/__DOC_CHECKER__.g -c "QUIT;" + $GAP $RUNNER_TEMP/__DOC_CHECKER__.g - name: "Remove auxiliary files" shell: bash From 7ea50d98661d92da88302cd64499a2d5131e1270 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 10 Jul 2026 17:28:30 +0200 Subject: [PATCH 2/2] Update action.yml Co-authored-by: stertooy <5571903+stertooy@users.noreply.github.com> --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 948110f..761a089 100644 --- a/action.yml +++ b/action.yml @@ -73,7 +73,7 @@ runs: Read("makedoc.g" : relativePath:="../../.."); QUIT; - EOF + EOF $GAP $RUNNER_TEMP/__DOC_MAKER__.g 2>&1 | tee $RUNNER_TEMP/output.log elif [ -x "doc/make_doc" ]; then # If the package is called , then the script