From 760962759e9c421867e7e6e7e8ee83f2439c2dcb Mon Sep 17 00:00:00 2001 From: Alex Matsuev Date: Mon, 24 Nov 2025 01:19:25 +0300 Subject: [PATCH] Test go action --- .gitea/workflows/test-action.yaml | 8 ++++++++ action.yaml | 5 +++++ go.mod | 3 +++ main.go | 7 +++++++ 4 files changed, 23 insertions(+) create mode 100644 .gitea/workflows/test-action.yaml create mode 100644 action.yaml create mode 100644 go.mod create mode 100644 main.go diff --git a/.gitea/workflows/test-action.yaml b/.gitea/workflows/test-action.yaml new file mode 100644 index 0000000..2dba222 --- /dev/null +++ b/.gitea/workflows/test-action.yaml @@ -0,0 +1,8 @@ +name: "Test Go Action" +on: [push] +jobs: + use-go-action: + runs-on: golang + steps: + - name: Use Go Action + uses: sirius.klsh.ru/sirius/go-action diff --git a/action.yaml b/action.yaml new file mode 100644 index 0000000..1595ef6 --- /dev/null +++ b/action.yaml @@ -0,0 +1,5 @@ +name: "Simple Go Action" +description: "A simple Gitea action written in go" +runs: + using: "go" + main: "main.go" diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..500c0ba --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module sirius.klsh.ru/sirius/go-action + +go 1.25.4 diff --git a/main.go b/main.go new file mode 100644 index 0000000..d2c4e91 --- /dev/null +++ b/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Hello world") +}