From 476ba36732966e9e3d1b771b99f1b7f9ab42c5b7 Mon Sep 17 00:00:00 2001 From: dm Date: Mon, 12 Aug 2024 16:16:43 +0800 Subject: [PATCH] test --- action.yml | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/action.yml b/action.yml index 797801d..5b9f171 100644 --- a/action.yml +++ b/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: + with: + username: foo + + - name: Print Output + run: echo 'output time is ${{ steps.use-go-action.outputs.time }}' \ No newline at end of file