summaryrefslogtreecommitdiffstats
path: root/internal/pkg/ver/version.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg/ver/version.go')
-rw-r--r--internal/pkg/ver/version.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/pkg/ver/version.go b/internal/pkg/ver/version.go
new file mode 100644
index 0000000..3c07a18
--- /dev/null
+++ b/internal/pkg/ver/version.go
@@ -0,0 +1,11 @@
+// Copyright 2023 The Gitea Authors. All rights reserved.
+// SPDX-License-Identifier: MIT
+
+package ver
+
+// go build -ldflags "-X gitea.com/gitea/act_runner/internal/pkg/ver.version=1.2.3"
+var version = "dev"
+
+func Version() string {
+ return version
+}