32 lines
757 B
YAML
32 lines
757 B
YAML
name: "Test Go Action"
|
|
on: [push]
|
|
|
|
jobs:
|
|
use-go-action:
|
|
runs-on: "actions-act-runner"
|
|
steps:
|
|
- name: Use Go Action
|
|
id: use-go-action
|
|
uses: https://danicos.dev/actions/simple-go-action@main
|
|
with:
|
|
username: Anastasia
|
|
|
|
- name: Print Output
|
|
run: echo 'output time is ${{ steps.use-go-action.outputs.time }}'
|
|
|
|
- name: Create Dir
|
|
run: "mkdir content && cd content"
|
|
|
|
- run: "touch file.txt"
|
|
working-directory: ./content
|
|
|
|
- run: "echo 'hello' > file.txt"
|
|
working-directory: ./content
|
|
|
|
- name: Who and Where am I
|
|
run: "ls -la && whoami && pwd"
|
|
|
|
- name: Read from File
|
|
working-directory: ./content
|
|
run: "cat file.txt && pwd"
|