Fix workdir (#224)

This commit is contained in:
CrazyMax
2020-06-24 02:24:58 +02:00
parent 044b9d4d64
commit 8708f57399
3 changed files with 11 additions and 7 deletions
+4 -4
View File
@@ -10,15 +10,15 @@ async function run(): Promise<void> {
const workdir = core.getInput('workdir') || '.';
const goreleaser = await installer.getGoReleaser(version);
const commit = await git.getShortCommit();
const tag = await git.getTag();
const isTagDirty = await git.isTagDirty(tag);
if (workdir && workdir !== '.') {
core.info(`📂 Using ${workdir} as working directory...`);
process.chdir(workdir);
}
const commit = await git.getShortCommit();
const tag = await git.getTag();
const isTagDirty = await git.isTagDirty(tag);
let snapshot = '';
if (args.split(' ').indexOf('release') > -1) {
if (isTagDirty) {