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