fix commit
This commit is contained in:
BIN
_examples/actions/write_a_readme/dist/bin
vendored
BIN
_examples/actions/write_a_readme/dist/bin
vendored
Binary file not shown.
@@ -1,6 +1,10 @@
|
||||
package main
|
||||
|
||||
import "github.com/bitfield/script"
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/bitfield/script"
|
||||
)
|
||||
|
||||
func main() {
|
||||
_, err := script.
|
||||
@@ -10,4 +14,25 @@ func main() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
println("ran stuff")
|
||||
entries, err := os.ReadDir(".")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
for _, entry := range entries {
|
||||
if !entry.IsDir() {
|
||||
file, err := os.ReadFile(entry.Name())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
println(string(file))
|
||||
}
|
||||
}
|
||||
|
||||
wd, err := os.Getwd()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
println(wd)
|
||||
}
|
||||
|
@@ -1,19 +1,19 @@
|
||||
apiVersion: action
|
||||
name: write-a-readme
|
||||
select:
|
||||
github:
|
||||
repositories:
|
||||
- kjuulh/octopush-test
|
||||
push:
|
||||
pull-request:
|
||||
name: "write a readme"
|
||||
# github:
|
||||
# repositories:
|
||||
# - kjuulh/octopush-test
|
||||
# push:
|
||||
# pull-request:
|
||||
# name: "write a readme"
|
||||
|
||||
gitea:
|
||||
repositories:
|
||||
- kjuulh/octopush-test
|
||||
push:
|
||||
pull-request:
|
||||
name: "write a readme"
|
||||
# gitea:
|
||||
# repositories:
|
||||
# - kjuulh/octopush-test
|
||||
# push:
|
||||
# pull-request:
|
||||
# name: "write a readme"
|
||||
|
||||
git:
|
||||
repositories:
|
||||
|
Reference in New Issue
Block a user