From f72ec3646956a007da207b67844f400477ede23b Mon Sep 17 00:00:00 2001 From: filip mertens Date: Tue, 21 Mar 2023 14:24:10 +0100 Subject: [PATCH] try ts --- apps/remix-ide/ci/publish_plugin.sh | 10 ++-------- apps/remix-ide/ci/publish_plugin.ts | 4 ++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/apps/remix-ide/ci/publish_plugin.sh b/apps/remix-ide/ci/publish_plugin.sh index c9662828f9..f26f1d0d59 100755 --- a/apps/remix-ide/ci/publish_plugin.sh +++ b/apps/remix-ide/ci/publish_plugin.sh @@ -2,6 +2,8 @@ set -e +git config --global user.name "$COMMIT_AUTHOR" +git config --global user.email "$COMMIT_AUTHOR_EMAIL" HASH=$(sha1sum persist/plugin-$1.zip | cut -d " " -f 1) # unzip persist/plugin-$1.zip @@ -10,12 +12,4 @@ HASH=$(sha1sum persist/plugin-$1.zip | cut -d " " -f 1) git clone git@github.com:ethereum/remix-plugins-directory.git npx ts-node apps/remix-ide/ci/publish_plugin.ts $1 $HASH alpha -cd remix-plugins-directory -git checkout -b plugin-$1-$HASH -git config user.name "$COMMIT_AUTHOR" -git config user.email "$COMMIT_AUTHOR_EMAIL" -git status -git add . -git commit -m "Publish plugin $1" -git status diff --git a/apps/remix-ide/ci/publish_plugin.ts b/apps/remix-ide/ci/publish_plugin.ts index ca643daa3a..e886d6c76b 100644 --- a/apps/remix-ide/ci/publish_plugin.ts +++ b/apps/remix-ide/ci/publish_plugin.ts @@ -94,7 +94,7 @@ import * as child_process from 'child_process' const content = fs.readFileSync(plugin_directory_path + pluginName + '/profile.json') console.log('profile.json', content.toString()) - /* + // create pull request const promisifyExec = util.promisify(child_process.exec) let out = await promisifyExec('git status', { @@ -113,5 +113,5 @@ import * as child_process from 'child_process' }) console.log(out) - */ + })() \ No newline at end of file