diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa7b67c..85cbb89 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,10 @@ on: push: branches: - master + - next + - next-major + - alpha + - beta jobs: release: diff --git a/.github/workflows/testRelease.yml b/.github/workflows/testRelease.yml index 96f3cc8..a783d78 100644 --- a/.github/workflows/testRelease.yml +++ b/.github/workflows/testRelease.yml @@ -6,7 +6,6 @@ on: - master - next - next-major - - next-major - alpha - beta - 'feat/**' diff --git a/README.md b/README.md index 5cedf65..f043f47 100644 --- a/README.md +++ b/README.md @@ -200,6 +200,7 @@ steps: | new_release_major_version | Major version of the new release. (e.g. `1`) | | new_release_minor_version | Minor version of the new release. (e.g. `3`) | | new_release_patch_version | Patch version of the new release. (e.g. `0`) | +| new_release_channel | The distribution channel on which the last release was initially made available (undefined for the default distribution channel). | | new_release_notes | The release notes for the new release. | #### Using Output Variables: diff --git a/action.yml b/action.yml index 132a913..7cc65c4 100644 --- a/action.yml +++ b/action.yml @@ -34,6 +34,8 @@ outputs: description: 'Minor version of the new release' new_release_patch_version: description: 'Patch version of the new release' + new_release_channel: + description: 'The distribution channel on which the last release was initially made available (undefined for the default distribution channel).' new_release_notes: description: 'The release notes for the new release.' runs: diff --git a/src/outputs.json b/src/outputs.json index ab0e122..5666d43 100644 --- a/src/outputs.json +++ b/src/outputs.json @@ -4,5 +4,6 @@ "new_release_major_version": "new_release_major_version", "new_release_minor_version": "new_release_minor_version", "new_release_patch_version": "new_release_patch_version", + "new_release_channel": "new_release_channel", "new_release_notes": "new_release_notes" } diff --git a/src/windUpJob.task.js b/src/windUpJob.task.js index 17e1d7d..26cb245 100644 --- a/src/windUpJob.task.js +++ b/src/windUpJob.task.js @@ -24,7 +24,7 @@ module.exports = async (result) => { core.debug(`The release was published with plugin "${release.pluginName}".`); } - const {version, notes} = nextRelease; + const {version, channel, notes} = nextRelease; const [major, minor, patch] = version.split(/\.|-|\s/g, 3); // set outputs @@ -33,5 +33,6 @@ module.exports = async (result) => { core.setOutput(outputs.new_release_major_version, major); core.setOutput(outputs.new_release_minor_version, minor); core.setOutput(outputs.new_release_patch_version, patch); + core.setOutput(outputs.new_release_channel, channel); core.setOutput(outputs.new_release_notes, notes); };