2024-07-10 10:35:50 +00:00
|
|
|
name: 'Test Go Action'
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
use-go-action:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-07-10 10:46:32 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
2024-07-10 10:35:50 +00:00
|
|
|
- name: Setup Go
|
2024-07-10 10:45:24 +00:00
|
|
|
uses: actions/setup-go@v5
|
2024-07-10 10:35:50 +00:00
|
|
|
with:
|
|
|
|
go-version: '1.20'
|
2024-07-10 10:45:24 +00:00
|
|
|
run: go version
|
2024-07-10 10:35:50 +00:00
|
|
|
|
|
|
|
- name: Print Output
|
|
|
|
run: echo 'output time is ${{ steps.use-go-action.outputs.time }}'
|