diff --git a/action.yml b/action.yml index adf9038..3aeab77 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,5 @@ name: 'Pull Request Lint' -description: 'Validates a pull request for semantical commit message' +description: 'A simple Gitea action written in go' runs: - using: 'node16' - main: 'invoke-binary.js' + using: 'go' + main: 'main.go' diff --git a/invoke-binary.js b/invoke-binary.js index 7551604..69baa60 100644 --- a/invoke-binary.js +++ b/invoke-binary.js @@ -2,15 +2,6 @@ const childProcess = require('child_process') const path = require('path') function runGo() { - childProcess.spawnSync( - 'ls', - ["-la"], - { - cwd: __dirname, - stdio: 'inherit', - shell: true, - }, - ) const goProcess = childProcess.spawnSync( 'go', ['run', '.'], diff --git a/main.go b/main.go index 537ff8d..ff508bd 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,4 @@ -package pullrequestlint +package main import ( "fmt"