mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-08-31 09:20:46 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8708f57399 | ||
|
|
044b9d4d64 | ||
|
|
0d32e80d56 | ||
|
|
eed3dc901e |
@@ -28,7 +28,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2.3.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
-
|
-
|
||||||
@@ -61,7 +61,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2.3.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
-
|
-
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2.3.1
|
||||||
-
|
-
|
||||||
name: Install
|
name: Install
|
||||||
run: yarn install
|
run: yarn install
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2.3.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
-
|
-
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2.1.1 (2020/06/24)
|
||||||
|
|
||||||
|
* Fix workdir (#224)
|
||||||
|
|
||||||
## 2.1.0 (2020/06/15)
|
## 2.1.0 (2020/06/15)
|
||||||
|
|
||||||
* Implement (optional) semver parsing of version (#213)
|
* Implement (optional) semver parsing of version (#213)
|
||||||
|
|||||||
+3
-3
@@ -1419,13 +1419,13 @@ function run() {
|
|||||||
const args = core.getInput('args', { required: true });
|
const args = core.getInput('args', { required: true });
|
||||||
const workdir = core.getInput('workdir') || '.';
|
const workdir = core.getInput('workdir') || '.';
|
||||||
const goreleaser = yield installer.getGoReleaser(version);
|
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 !== '.') {
|
if (workdir && workdir !== '.') {
|
||||||
core.info(`📂 Using ${workdir} as working directory...`);
|
core.info(`📂 Using ${workdir} as working directory...`);
|
||||||
process.chdir(workdir);
|
process.chdir(workdir);
|
||||||
}
|
}
|
||||||
|
const commit = yield git.getShortCommit();
|
||||||
|
const tag = yield git.getTag();
|
||||||
|
const isTagDirty = yield git.isTagDirty(tag);
|
||||||
let snapshot = '';
|
let snapshot = '';
|
||||||
if (args.split(' ').indexOf('release') > -1) {
|
if (args.split(' ').indexOf('release') > -1) {
|
||||||
if (isTagDirty) {
|
if (isTagDirty) {
|
||||||
|
|||||||
+4
-4
@@ -31,12 +31,12 @@
|
|||||||
"@types/node": "^14.0.13",
|
"@types/node": "^14.0.13",
|
||||||
"@zeit/ncc": "^0.22.3",
|
"@zeit/ncc": "^0.22.3",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"jest": "^26.0.1",
|
"jest": "^26.1.0",
|
||||||
"jest-circus": "^26.0.1",
|
"jest-circus": "^26.1.0",
|
||||||
"jest-runtime": "^26.0.1",
|
"jest-runtime": "^26.1.0",
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^2.0.5",
|
||||||
"tmp": "^0.2.1",
|
"tmp": "^0.2.1",
|
||||||
"ts-jest": "^26.1.0",
|
"ts-jest": "^26.1.1",
|
||||||
"typescript": "^3.9.5",
|
"typescript": "^3.9.5",
|
||||||
"typescript-formatter": "^7.2.2"
|
"typescript-formatter": "^7.2.2"
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-4
@@ -10,15 +10,15 @@ async function run(): Promise<void> {
|
|||||||
const workdir = core.getInput('workdir') || '.';
|
const workdir = core.getInput('workdir') || '.';
|
||||||
const goreleaser = await installer.getGoReleaser(version);
|
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 !== '.') {
|
if (workdir && workdir !== '.') {
|
||||||
core.info(`📂 Using ${workdir} as working directory...`);
|
core.info(`📂 Using ${workdir} as working directory...`);
|
||||||
process.chdir(workdir);
|
process.chdir(workdir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const commit = await git.getShortCommit();
|
||||||
|
const tag = await git.getTag();
|
||||||
|
const isTagDirty = await git.isTagDirty(tag);
|
||||||
|
|
||||||
let snapshot = '';
|
let snapshot = '';
|
||||||
if (args.split(' ').indexOf('release') > -1) {
|
if (args.split(' ').indexOf('release') > -1) {
|
||||||
if (isTagDirty) {
|
if (isTagDirty) {
|
||||||
|
|||||||
Reference in New Issue
Block a user