Skip to content

self-restart on push for sce-ci-cd(--restart-on-push) - #52

Open
vineeshah wants to merge 3 commits into
SCE-Development:mainfrom
vineeshah:self-update
Open

self-restart on push for sce-ci-cd(--restart-on-push)#52
vineeshah wants to merge 3 commits into
SCE-Development:mainfrom
vineeshah:self-update

Conversation

@vineeshah

Copy link
Copy Markdown
  • --restart-on-push branch: server exits with code 10 on a push to its own
    branch (sce-cicd).
  • New cicd.sh wrapper script runs the server, catches exit 10 → git pull + reinstall
    • relaunch.
  • On relaunch, sends a "CICD Restarted" Discord embed (success/fail) with the
    pulled commit hash (hyperlinked) + host.

Tested locally.

-Move all dataclasses to a location like modules/structs.py
-Move every function that generates an embed to its own file like modules/embeds.py
-Add Webhook URLs as a param to avoid circular import in the embeds file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant