From 29a8a977c2d435d04c9c8759feabee7f4ae1c98f Mon Sep 17 00:00:00 2001 From: Tycho Bokdam Date: Fri, 18 Oct 2019 10:07:56 +0200 Subject: [PATCH] chore: Test release --- src/helpers/git.js | 8 ++++---- src/index.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/helpers/git.js b/src/helpers/git.js index 7b9446a..7642f66 100644 --- a/src/helpers/git.js +++ b/src/helpers/git.js @@ -1,6 +1,6 @@ const exec = require('@actions/exec') -const git = (command) => exec.exec(`git ${command}`) +const git = command => exec.exec(`git ${command}`) module.exports = { @@ -40,11 +40,11 @@ module.exports = { tag: { - getCurrent: () => git('describe --tags --abbrev=0', { silent: true }).toString().trim(), + getCurrent: () => git('describe --tags --abbrev=0').toString().trim(), - getSha: (tag) => git(`rev-list -n 1 ${tag}`, { silent: true }).toString().trim(), + getSha: (tag) => git(`rev-list -n 1 ${tag}`).toString().trim(), - latest: () => git('describe --tags $(git rev-list --tags --max-count=1)', { silent: true }).toString().trim(), + latest: () => git('describe --tags $(git rev-list --tags --max-count=1)').toString().trim(), create: (tag) => git(`tag -a ${tag} -m "${tag}"`), diff --git a/src/index.js b/src/index.js index 1fb268a..e224d1e 100644 --- a/src/index.js +++ b/src/index.js @@ -11,7 +11,7 @@ async function run() { // Make the Github token secret core.setSecret(githubToken) - core.info(`The previous tag was: ${git.tag.latest()} `) + core.info(`The previous tag was: ${await git.tag.latest()} `) // Get the current version // const currentVersion = require('./package.json').version