From 7e53a05fac39a11ef21cc5b47d70478fb8acbe72 Mon Sep 17 00:00:00 2001
From: Timo Furrer <tfurrer@gitlab.com>
Date: Thu, 18 Jan 2024 19:57:55 +0100
Subject: [PATCH] fix filtering

---
 Makefile  | 2 +-
 README.md | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 2e458d2..cd347bb 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ docs:
 	echo >> README.md
 	echo 'The following OpenTofu versions are available with this component via the `opentofu_version` input:' >> README.md
 	echo >> README.md
-	yq -r '.spec.inputs.opentofu_version.options | .[] | "- [`" + . + "`](https://github.com/opentofu/opentofu/releases/tag/v" + . + ")"' templates/full-pipeline.yml >> README.md
+	yq -r '.spec.inputs.opentofu_version.options | filter((. | test("\$$.*")) == false) | .[] | "- [`" + . + "`](https://github.com/opentofu/opentofu/releases/tag/v" + . + ")"' templates/full-pipeline.yml >> README.md
 	tail -n+2 readme1 >> README.md
 	rm -f readme0 readme1 readme_inputs.md
 
diff --git a/README.md b/README.md
index 6a861fa..a58044b 100644
--- a/README.md
+++ b/README.md
@@ -88,7 +88,6 @@ stages: [validate, test, build, deploy, cleanup]
 
 The following OpenTofu versions are available with this component via the `opentofu_version` input:
 
-- [`$OPENTOFU_VERSION`](https://github.com/opentofu/opentofu/releases/tag/v$OPENTOFU_VERSION)
 - [`1.6.0`](https://github.com/opentofu/opentofu/releases/tag/v1.6.0)
 - [`1.6.0-rc1`](https://github.com/opentofu/opentofu/releases/tag/v1.6.0-rc1)
 
-- 
GitLab