summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-02-15 20:56:26 +0100
committerSander Vrijders <sander@ouroboros.rocks>2026-02-18 08:02:31 +0100
commitc87c99ff5adf700e768a08d2c8c02a7705cf9003 (patch)
tree1740be2e77263cf8cc7f36be8c5d3d5e2ba13355
parentb6b0b754d99dc2298930cb5db42950bf7c08cc08 (diff)
downloadouroboros-c87c99ff5adf700e768a08d2c8c02a7705cf9003.tar.gz
ouroboros-c87c99ff5adf700e768a08d2c8c02a7705cf9003.zip
ci: Add a check for VERSION file
This adds a check that the VERSION file is the correct format so we detect accidental editing or overwrites. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
-rw-r--r--.ci/woodpecker/00-check-version.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.ci/woodpecker/00-check-version.yaml b/.ci/woodpecker/00-check-version.yaml
new file mode 100644
index 00000000..cc2a24a8
--- /dev/null
+++ b/.ci/woodpecker/00-check-version.yaml
@@ -0,0 +1,13 @@
+steps:
+ - name: check-version
+ image: alpine
+ pull: true
+ when:
+ branch: [be]
+ event: [push, pull_request]
+ commands:
+ - |
+ grep -q '$Format:' VERSION || (
+ echo "ERROR: VERSION must contain \$Format placeholder for export-subst"
+ exit 1
+ )