test
This commit is contained in:
parent
b175346846
commit
476ba36732
33
action.yml
33
action.yml
|
@ -1,16 +1,19 @@
|
|||
name: 'Simple Go Action'
|
||||
description: 'A simple Gitea action written in go'
|
||||
name: 'Test Go Action'
|
||||
on: [push]
|
||||
runs-on: ps_runner_labels
|
||||
inputs:
|
||||
username:
|
||||
description: 'The username to print'
|
||||
required: true
|
||||
outputs:
|
||||
time:
|
||||
description: 'The time when the action was called'
|
||||
runs:
|
||||
using: 'go'
|
||||
main: 'main.go'
|
||||
pre: "pre/pre.go"
|
||||
post: "post/post.go"
|
||||
jobs:
|
||||
use-go-action:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.20'
|
||||
|
||||
- name: Use Go Action
|
||||
id: use-go-action
|
||||
uses: <action-url>
|
||||
with:
|
||||
username: foo
|
||||
|
||||
- name: Print Output
|
||||
run: echo 'output time is ${{ steps.use-go-action.outputs.time }}'
|
Loading…
Reference in New Issue