From e810212ef726267c109e10f0a650da368c7ded70 Mon Sep 17 00:00:00 2001 From: fghwett <1058178245@qq.com> Date: Thu, 21 Dec 2023 11:40:35 +0800 Subject: [PATCH] add pre and post --- action.yaml | 4 +++- post/main.go | 7 +++++++ pre/main.go | 7 +++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 post/main.go create mode 100644 pre/main.go diff --git a/action.yaml b/action.yaml index 865755c..b71b02b 100644 --- a/action.yaml +++ b/action.yaml @@ -9,4 +9,6 @@ outputs: description: 'The time when the action was called' runs: using: 'go' - main: 'main.go' \ No newline at end of file + main: 'main.go' + pre: 'pre/main.go' + post: 'post/main.go' \ No newline at end of file diff --git a/post/main.go b/post/main.go new file mode 100644 index 0000000..c15cdb4 --- /dev/null +++ b/post/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Post of Simple Go Action") +} diff --git a/pre/main.go b/pre/main.go new file mode 100644 index 0000000..b8d5edd --- /dev/null +++ b/pre/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Pre of Simple Go Action") +}