skyrim-multiplayer / skymp

Multiplayer Mod & TypeScript SDK for Skyrim Special Edition
Other
221 stars 75 forks source link

internal: add get-logs GitHub workflow #2198

Closed Pospelove closed 3 weeks ago

Pospelove commented 3 weeks ago

[!IMPORTANT] Add GitHub workflow and Bash script to retrieve server logs based on branch and grep arguments.

  • GitHub Workflow:
    • Adds get-logs.yml for retrieving server logs with repository_dispatch and workflow_dispatch triggers.
    • Supports inputs for branch and grep-arg.
    • Uses actions/checkout@v4 to checkout the repository.
  • Bash Script:
    • Adds get_logs_from_server.sh to connect to a remote server and fetch logs.
    • Validates environment variables and sets up SSH connection.
    • Executes docker logs command, filtering with grep.
  • Environment Setup:
    • Uses secrets for SSH connection details.
    • Handles errors with report_fail() function in the script.

This description was created by Ellipsis for 57c72e10982c877c72f0bc6825b8bb16cbc69375. It will automatically update as commits are pushed.