From 983303e9135b2ec36dba9adb678d0a6109544aca Mon Sep 17 00:00:00 2001 From: milanmeyerkaya Date: Thu, 16 Apr 2026 14:50:00 +0200 Subject: [PATCH] AUfgabe 1: Basic-Workflows angelegt --- .github/workflows/sysadmin-basics.yml | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/sysadmin-basics.yml diff --git a/.github/workflows/sysadmin-basics.yml b/.github/workflows/sysadmin-basics.yml new file mode 100644 index 0000000..b541bfc --- /dev/null +++ b/.github/workflows/sysadmin-basics.yml @@ -0,0 +1,39 @@ +yaml + +name: Sysadmin Basics + +on: + push: + workflow_dispatch: + +jobs: + system-info: + runs-on: ubuntu-latest + + steps: + - name: Repository auschecken + uses: actions/checkout@v4 + + - name: Systeminfos anzeigen + run: | + echo "=== Datum ===" + date + echo "=== Kernel-Info ===" + uname -a + echo "=== Aktuelles Verzeichnis ===" + pwd + echo "=== Verzeichnisinhalt ===" + ls -la + + - name: Report-Datei erstellen + run: | + mkdir -p reports + echo "=== System Report ===" > reports/system-report.txt + echo "Datum: $(date)" >> reports/system-report.txt + echo "Runner: $RUNNER_NAME" >> reports/system-report.txt + echo "Verzeichnis: $(pwd)" >> reports/system-report.txt + echo "Inhalt:" >> reports/system-report.txt + ls -la >> reports/system-report.txt + + - name: Report ausgeben + run: cat reports/system-report.txt