Files
dev/.github/workflows/hello.yml
T
2026-08-13 04:13:15 +02:00

43 lines
1.1 KiB
YAML

name: Hello GitHub Actions
on:
workflow_dispatch:
jobs:
hello:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-dotnet@v6
with:
dotnet-version: '10.0.x'
- name: Dotnet info
run: dotnet --info
- name: Say hello
run: echo "Hello from GitHub Actions!"
- name: Show operating system
run: uname -a
- name: Show current directory
run: pwd
- name: List files
run: ls -la
- name: Show current time
run: date
- name: VM summary
run: |
echo "CPU cores: $(nproc)"
echo "CPU: $(lscpu | grep 'Model name' | head -1 | cut -d: -f2- | xargs)"
echo "RAM: $(free -h | awk '/^Mem:/ {print $2}')"
echo "Available RAM: $(free -h | awk '/^Mem:/ {print $7}')"
echo "Disk: $(df -h / | awk 'NR==2 {print $2}')"
echo "Available disk: $(df -h / | awk 'NR==2 {print $4}')"
echo "OS: $(lsb_release -ds 2>/dev/null || cat /etc/os-release | grep PRETTY_NAME)"