add pre and post

This commit is contained in:
2023-12-21 11:40:35 +08:00
parent c2dc5e2d74
commit e810212ef7
3 changed files with 17 additions and 1 deletions

View File

@@ -9,4 +9,6 @@ outputs:
description: 'The time when the action was called'
runs:
using: 'go'
main: 'main.go'
main: 'main.go'
pre: 'pre/main.go'
post: 'post/main.go'

7
post/main.go Normal file
View File

@@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("Post of Simple Go Action")
}

7
pre/main.go Normal file
View File

@@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("Pre of Simple Go Action")
}