chore: Test release

releases/v3
Tycho Bokdam 2019-10-18 10:07:56 +02:00
parent f096360679
commit 29a8a977c2
No known key found for this signature in database
GPG Key ID: A0FAE77C8CDF33C7
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
const exec = require('@actions/exec') const exec = require('@actions/exec')
const git = (command) => exec.exec(`git ${command}`) const git = command => exec.exec(`git ${command}`)
module.exports = { module.exports = {
@ -40,11 +40,11 @@ module.exports = {
tag: { 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}"`), create: (tag) => git(`tag -a ${tag} -m "${tag}"`),

View File

@ -11,7 +11,7 @@ async function run() {
// Make the Github token secret // Make the Github token secret
core.setSecret(githubToken) 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 // Get the current version
// const currentVersion = require('./package.json').version // const currentVersion = require('./package.json').version