31 lines
687 B
YAML
31 lines
687 B
YAML
name: "Test Go Action"
|
|
on: [push]
|
|
|
|
jobs:
|
|
use-go-action:
|
|
runs-on: arch-linux
|
|
steps:
|
|
- name: Use Go Action
|
|
id: use-go-action
|
|
uses: https://git.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"
|
|
|
|
- name: Create File
|
|
run: "touch file.txt"
|
|
|
|
- name: Write to File
|
|
run: "echo 'hello' > file.txt"
|
|
|
|
- name: Who and Where am I
|
|
run: "ls -la && whoami && pwd"
|
|
|
|
- name: Read from File
|
|
run: "cat file.txt"
|