Fix workdir (#224)
This commit is contained in:
parent
044b9d4d64
commit
8708f57399
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
## 2.1.1 (2020/06/24)
|
||||
|
||||
* Fix workdir (#224)
|
||||
|
||||
## 2.1.0 (2020/06/15)
|
||||
|
||||
* Implement (optional) semver parsing of version (#213)
|
||||
|
|
|
@ -1419,13 +1419,13 @@ function run() {
|
|||
const args = core.getInput('args', { required: true });
|
||||
const workdir = core.getInput('workdir') || '.';
|
||||
const goreleaser = yield installer.getGoReleaser(version);
|
||||
const commit = yield git.getShortCommit();
|
||||
const tag = yield git.getTag();
|
||||
const isTagDirty = yield git.isTagDirty(tag);
|
||||
if (workdir && workdir !== '.') {
|
||||
core.info(`📂 Using ${workdir} as working directory...`);
|
||||
process.chdir(workdir);
|
||||
}
|
||||
const commit = yield git.getShortCommit();
|
||||
const tag = yield git.getTag();
|
||||
const isTagDirty = yield git.isTagDirty(tag);
|
||||
let snapshot = '';
|
||||
if (args.split(' ').indexOf('release') > -1) {
|
||||
if (isTagDirty) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue