8000 GitHub - posener/goaction-example: Simplest goaction example
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

posener/goaction-example

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goaction Example

an example of the simplest goaction sctipt.

Notice that the only non-generated file is ./main.go. The generated files were generated using Github action ./github/workflows/goaction.yml.

The ./main.go is the only non-generated file and is a simple Go script, and can be run with:

$ go run .

The ./action.yml is autogenerated and contains the action definition. Notice that the flag from the program below appears as the input for the Github action. You can see the action in-action in the action page.

The ./Dockerfile is autogenerated and will also run the ./main.go sctipt. You can build and run it with docker, even if you don't have Go installed on your machine:

$ docker build -t goaction-example .
$ docker run --rm goaction-example

This is the simplest program possible. Goaction also provides a library that helps writing Github action scripts easily.


Readme created from Go doc with goreadme

Packages

No packages published
0