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