AUfgabe 1: Basic-Workflows angelegt
This commit is contained in:
parent
534cccdd51
commit
983303e913
1 changed files with 39 additions and 0 deletions
39
.github/workflows/sysadmin-basics.yml
vendored
Normal file
39
.github/workflows/sysadmin-basics.yml
vendored
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue