Merge pull request #29 from ad-m/skip-docker

Skip Docker in manifest
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0c15c7d..1abd4be 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -10,8 +10,6 @@
  
     steps:
     - uses: actions/checkout@v1
-    - name: Build Docker image
-      run: docker build . --tag my-image-name:$(date +%s)
     - name: Verify action syntax 
       # The action should not publish any real changes, but should succeed.
       uses: './'
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 1f9883e..0000000
--- a/Dockerfile
+++ /dev/null
@@ -1,16 +0,0 @@
-FROM alpine
-
-LABEL "name"="github-push"
-LABEL "maintainer"="Adam Dobrawy <git+push@jawnosc.tk>"
-LABEL "version"="0.0.1"
-
-LABEL "com.github.actions.name"="Git push for GitHub Actions"
-LABEL "com.github.actions.description"="Runs 'git push' to GitHub in an Action"
-LABEL "com.github.actions.icon"="upload-cloud"
-LABEL "com.github.actions.color"="green"
-
-COPY README.md LICENSE start.sh /
-
-RUN apk add --no-cache git
-
-CMD ["/start.sh"]
diff --git a/action.yml b/action.yml
index 5e84a87..e583178 100644
--- a/action.yml
+++ b/action.yml
@@ -24,5 +24,5 @@
     required: false
     default: '.'
 runs:
-  using: 'docker'
-  image: 'Dockerfile'
+  using: 'node12'
+  main: 'start.js'
\ No newline at end of file
diff --git a/start.js b/start.js
new file mode 100644
index 0000000..2043c27
--- /dev/null
+++ b/start.js
@@ -0,0 +1,13 @@
+const spawn = require('child_process').spawn;
+
+const main = () => new Promise((resolve, reject) => {
+    const ssh = spawn('bash', ['start.sh'], { stdio: 'inherit' });
+    ssh.on('close', resolve);
+    ssh.on('error', reject);
+});
+
+main().catch(err => {
+    console.err(err);
+    console.err(err.stack);
+    process.exit(-1);
+})
\ No newline at end of file