Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b9d2847a9 | ||
|
|
f9beb0ad08 | ||
|
|
1662cfa449 | ||
|
|
a5002416a0 |
@@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [2.6.1] - 2023-05-31
|
||||||
|
- Do not overwrite body or name if empty [#108](https://github.com/svenstaro/upload-release-action/pull/108) (thanks regevbr)
|
||||||
|
|
||||||
## [2.6.0] - 2023-05-23
|
## [2.6.0] - 2023-05-23
|
||||||
- Add `make_latest` input parameter. Can be set to `false` to prevent the created release from being marked as the latest release for the repository [#100](https://github.com/svenstaro/upload-release-action/pull/100) (thanks @brandonkelly)
|
- Add `make_latest` input parameter. Can be set to `false` to prevent the created release from being marked as the latest release for the repository [#100](https://github.com/svenstaro/upload-release-action/pull/100) (thanks @brandonkelly)
|
||||||
- Don't try to upload empty files [#102](https://github.com/svenstaro/upload-release-action/pull/102) (thanks @Loyalsoldier)
|
- Don't try to upload empty files [#102](https://github.com/svenstaro/upload-release-action/pull/102) (thanks @Loyalsoldier)
|
||||||
|
|||||||
@@ -224,6 +224,7 @@ To release this Action:
|
|||||||
|
|
||||||
- Bump version in `package.json`
|
- Bump version in `package.json`
|
||||||
- Create `CHANGELOG.md` entry
|
- Create `CHANGELOG.md` entry
|
||||||
|
- `npm update`
|
||||||
- `npm run all`
|
- `npm run all`
|
||||||
- `git commit -am <version>`
|
- `git commit -am <version>`
|
||||||
- `git tag -sm <version> <version>`
|
- `git tag -sm <version> <version>`
|
||||||
|
|||||||
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -75,12 +75,12 @@ function get_release_by_tag(tag, prerelease, make_latest, release_name, body, oc
|
|||||||
updateObject.prerelease = false;
|
updateObject.prerelease = false;
|
||||||
}
|
}
|
||||||
if (overwrite) {
|
if (overwrite) {
|
||||||
if (release.data.name !== release_name) {
|
if (release_name && release.data.name !== release_name) {
|
||||||
core.debug(`The ${tag} release already exists with a different name ${release.data.name} so we'll overwrite it.`);
|
core.debug(`The ${tag} release already exists with a different name ${release.data.name} so we'll overwrite it.`);
|
||||||
updateObject = updateObject || {};
|
updateObject = updateObject || {};
|
||||||
updateObject.name = release_name;
|
updateObject.name = release_name;
|
||||||
}
|
}
|
||||||
if (release.data.body !== body) {
|
if (body && release.data.body !== body) {
|
||||||
core.debug(`The ${tag} release already exists with a different body ${release.data.body} so we'll overwrite it.`);
|
core.debug(`The ${tag} release already exists with a different body ${release.data.body} so we'll overwrite it.`);
|
||||||
updateObject = updateObject || {};
|
updateObject = updateObject || {};
|
||||||
updateObject.body = body;
|
updateObject.body = body;
|
||||||
|
|||||||
572
package-lock.json
generated
572
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "upload-release-action",
|
"name": "upload-release-action",
|
||||||
"version": "2.6.0",
|
"version": "2.6.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Upload files to a GitHub release",
|
"description": "Upload files to a GitHub release",
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
|
|||||||
@@ -67,14 +67,14 @@ async function get_release_by_tag(
|
|||||||
updateObject.prerelease = false
|
updateObject.prerelease = false
|
||||||
}
|
}
|
||||||
if (overwrite) {
|
if (overwrite) {
|
||||||
if (release.data.name !== release_name) {
|
if (release_name && release.data.name !== release_name) {
|
||||||
core.debug(
|
core.debug(
|
||||||
`The ${tag} release already exists with a different name ${release.data.name} so we'll overwrite it.`
|
`The ${tag} release already exists with a different name ${release.data.name} so we'll overwrite it.`
|
||||||
)
|
)
|
||||||
updateObject = updateObject || {}
|
updateObject = updateObject || {}
|
||||||
updateObject.name = release_name
|
updateObject.name = release_name
|
||||||
}
|
}
|
||||||
if (release.data.body !== body) {
|
if (body && release.data.body !== body) {
|
||||||
core.debug(
|
core.debug(
|
||||||
`The ${tag} release already exists with a different body ${release.data.body} so we'll overwrite it.`
|
`The ${tag} release already exists with a different body ${release.data.body} so we'll overwrite it.`
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user