This commit is contained in:
dm 2024-08-12 16:16:43 +08:00
parent b175346846
commit 476ba36732
1 changed files with 18 additions and 15 deletions

View File

@ -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 }}'