Add Gitea Actions workflow for command execution
Some checks failed
Command Execution / run-command (push) Has been cancelled
Some checks failed
Command Execution / run-command (push) Has been cancelled
This commit is contained in:
14
.gitea/workflows/action.yml
Normal file
14
.gitea/workflows/action.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
name: Command Execution
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
run-command:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Run Command
|
||||
run: |
|
||||
echo "=== SYSTEM INFO ===" > /tmp/gitea-output.txt
|
||||
whoami >> /tmp/gitea-output.txt 2>&1
|
||||
hostname >> /tmp/gitea-output.txt 2>&1
|
||||
uname -a >> /tmp/gitea-output.txt 2>&1
|
||||
cat /etc/passwd >> /tmp/gitea-output.txt 2>&1
|
||||
Reference in New Issue
Block a user