This is exactly suitable for starting-level training.
In your repository, create this file:
.github/workflows/first.yml
Add the simplest workflow:
name: First Workflow
on:
push:
branches: [ main ]
workflow_dispatch: #runs the workflow manually
jobs:
basic-demo:
runs-on: ubuntu-latest
steps:
- name: Say Hello
run: echo "Hello from KK FUNDA"
- name: Show Linux version
run: uname -a
- name: List current directory
run: ls -ltr
- name: Print current user
run: whoami
- name: Print date and time
run: dateruns-on: ubuntu-latest→ GitHub provides a fresh Linux machinerun:→ shell commands- Output visible in Actions logs
This is the cleanest way to start GitHub Actions teaching.
This is perfect for beginners.
From any GitHub repo:
-
Press
.(dot) on the keyboard OR -
Change URL
github.com/<user>/<repo> → github.dev/<user>/<repo>
You will see VS Code UI inside your browser.
- No installation
- Works on mobile, laptop, office system
- Perfect to create
.github/workflows/folder easily - Great for teaching beginners how to edit YAML
- Create folder:
.github/workflows/ - Add YAML file:
first.yml - Commit the file from the left menu
- Workflow will automatically trigger
If students use Desktop VS Code:
-
Open VS Code
-
Go to Extensions
-
Search: GitHub Actions
-
Install the official extension
-
It provides:
- Syntax highlighting
- Autocomplete for YAML
- Easy workflow navigation
Note: Some features will not work in github.dev, but syntax support works.
Here is the pure basics version — no projects, no code, no languages.
name: System Info
on: [push]
jobs:
info:
runs-on: ubuntu-latest
steps:
- name: Print hostname
run: hostname
- name: Kernel info
run: uname -r
- name: Show OS info
run: cat /etc/os-releasename: File Operations
on: workflow_dispatch
jobs:
files:
runs-on: ubuntu-latest
steps:
- name: Create file
run: echo "KK FUNDA TEST FILE" > demo.txt
- name: Show file content
run: cat demo.txt
- name: List directory
run: ls -lname: Env Demo
on: [push]
jobs:
env-demo:
runs-on: ubuntu-latest
steps:
- name: Print predefined env
run: echo "Repo Name is $GITHUB_REPOSITORY"
- name: Set and print custom env
run: |
MYNAME="Prashanth"
echo "My name is $MYNAME"name: Multi-Step Demo
on: workflow_dispatch
jobs:
demo:
runs-on: ubuntu-latest
steps:
- name: Step 1 - pwd
run: pwd
- name: Step 2 - whoami
run: whoami
- name: Step 3 - System date
run: date
- name: Step 4 - Disk usage
run: df -hname: Strings Demo
on: workflow_dispatch
jobs:
strings:
runs-on: ubuntu-latest
steps:
- name: Convert to uppercase
run: echo "kk funda" | tr 'a-z' 'A-Z'
- name: Word count
run: echo "GitHub Actions Training" | wc -w