Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
aidansteele committed Apr 8, 2022
1 parent 55e3400 commit 83189c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 86 deletions.
81 changes: 0 additions & 81 deletions .github/workflows/publish-image.yml

This file was deleted.

5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ type snapshot struct {
}

func main() {
if os.Args[1] == "start" {
fmt.Println("hello world")
return
}

dctx := &daemon.Context{
PidFileName: "/tmp/gha.pid",
//PidFilePerm: 0,
Expand Down
9 changes: 4 additions & 5 deletions start.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { execSync } from 'child_process';

const url = "";
const path = "/usr/bin/gha-stats"
execSync(`curl -o ${path} -L ${url}`);
execSync(`chmod +x ${path}`);
execSync(`${path} start`);
const url = "https://github.com/aidansteele/gha-stats/releases/download/v0.1.0/gha-stats_0.1.0_linux_amd64.tar.gz";
execSync(`curl -o /tmp/gha-stats.tgz -L ${url}`);
execSync(`tar -xvf -C /usr/bin /tmp/gha-stats.tgz`);
execSync(`gha-stats start`);

0 comments on commit 83189c1

Please sign in to comment.