Skip to content

Commit

Permalink
Download worker
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed May 20, 2024
1 parent e1e0705 commit 32fb94c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dead_hosts/launcher/defaults/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,12 @@
"destination": "main.yml",
}


GHA_SCHEDULER_WORKFLOW: dict = {
"link": "https://github.com/dead-hosts/template/raw/master/.github/workflows/scheduler.yml",
"destination": "scheduler.yml",
}

GHA_WORKER_WORKFLOW: dict = {
"link": "https://github.com/dead-hosts/template/raw/master/.github/workflows/worker.yml",
"destination": "worker.yml",
}
9 changes: 9 additions & 0 deletions dead_hosts/launcher/updater/github_actions_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,13 @@ def start(self) -> "GHAWorkflowsUpdater":
)
)

DownloadHelper(
dead_hosts.launcher.defaults.links.GHA_WORKER_WORKFLOW["link"]
).download_text(
destination=os.path.join(
self.info_manager.GHA_WORKFLOWS_DIR,
dead_hosts.launcher.defaults.links.GHA_WORKER_WORKFLOW["destination"],
)
)

return self

0 comments on commit 32fb94c

Please sign in to comment.