.github/workflows/sysadmin-basics.yml hinzugefügt
Some checks failed
Sysadmin Basics Workflow / system-check (push) Has been cancelled
Some checks failed
Sysadmin Basics Workflow / system-check (push) Has been cancelled
This commit is contained in:
parent
4f0cd2a562
commit
6a9d5b3008
1 changed files with 31 additions and 0 deletions
31
.github/workflows/sysadmin-basics.yml
vendored
Normal file
31
.github/workflows/sysadmin-basics.yml
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue