Some checks failed
Sysadmin Basics Workflow / system-check (push) Has been cancelled
31 lines
No EOL
779 B
YAML
31 lines
No EOL
779 B
YAML
name: Sysadmin Basics Workflow
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
system-check:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Code auschecken
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Systeminfos anzeigen
|
|
run: |
|
|
echo "Aktuelles Datum: $(date)"
|
|
echo "Kernel Info: $(uname -a)"
|
|
echo "Aktuelles Verzeichnis: $(pwd)"
|
|
ls -la
|
|
|
|
- name: Report-Ordner erstellen
|
|
run: mkdir -p reports
|
|
|
|
- name: System-Report schreiben
|
|
run: |
|
|
echo "Datum: $(date)" > reports/system-report.txt
|
|
echo "Runner: $RUNNER_NAME" >> reports/system-report.txt
|
|
echo "Verzeichnisinhalt:" >> reports/system-report.txt
|
|
ls -la >> reports/system-report.txt |