-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
on: [push] | ||
|
||
jobs: | ||
hello_world_job: | ||
runs-on: ubuntu-latest | ||
name: Test gotip | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- id: test | ||
uses: ./ | ||
with: | ||
branch: 'master' |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
# gotip-action | ||
It's a Github action responsible for setup gotip environment. | ||
|
||
it only accepts one parameter: | ||
```yml | ||
with: | ||
branch: 'master' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: 'Setup Gotip' | ||
description: 'install gotip' | ||
inputs: | ||
branch: # branch | ||
description: 'the branch you wish to install' | ||
required: false | ||
default: 'master' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
- name: Set up GCC | ||
uses: egor-tensin/setup-gcc@v1 | ||
with: | ||
version: latest | ||
- name: Install gotip | ||
run: go install golang.org/dl/gotip@latest | ||
shell: bash | ||
- name: Download gotip | ||
run: gotip download ${{ inputs.branch }} | ||
shell: bash | ||
- name: Output | ||
run: gotip env | ||
shell: bash | ||
branding: | ||
icon: star | ||
color: green |