Skip to content

Commit 3eeec46

Browse files
committed
Add sample action as test
Copied from https://github.com/posener/goaction-example
1 parent 3b0bb8b commit 3eeec46

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.github/workflows/goaction.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on:
2+
push:
3+
branches: [main]
4+
jobs:
5+
goaction:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Check out repository
9+
uses: actions/checkout@v2
10+
- name: Update action files
11+
uses: posener/goaction@v1
12+
with:
13+
name: goaction-example
14+
github-token: '${{ secrets.GITHUB_TOKEN }}'

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
# fetch-gh-release-binary
2+
3+
GitHub Action generated with [goaction](https://github.com/posener/goaction) to
4+
download binaries from GitHub releases and make them available for use in later
5+
steps.

main.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package main
2+
3+
import (
4+
"flag"
5+
"log"
6+
)
7+
8+
var who = flag.String("who", "world", "Say hello to who")
9+
10+
func main() {
11+
flag.Parse()
12+
log.Println("Hello,", *who)
13+
}

0 commit comments

Comments
 (0)