Skip to content

Commit

Permalink
Merge pull request #13 from rwx-research/remove-latest-release-channel
Browse files Browse the repository at this point in the history
Remove 'latest' release channel.
  • Loading branch information
doxavore authored Nov 23, 2022
2 parents 1603303 + 3bb2f62 commit 8a4581a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6608,8 +6608,8 @@ function run() {
core.setFailed("`access-token` field can't be empty.");
}
const releaseChannel = core.getInput('release-channel') || 'v1';
if (!['v1', 'latest', 'unstable'].includes(releaseChannel)) {
core.setFailed(`Invalid \`release-channel\` field: ${releaseChannel}. \`release-channel\` must be "v1" or "unstable" (default is "v1").`);
if (!['v1', 'unstable'].includes(releaseChannel)) {
core.setFailed(`Invalid \`release-channel\` field: ${releaseChannel}. \`release-channel\` must be "v1".`);
}
const os = getOs();
const arch = getArch();
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-abq",
"version": "1.0.3",
"version": "1.0.4",
"private": true,
"description": "This action installs the abq binary.",
"main": "dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ async function run() {
}

const releaseChannel = core.getInput('release-channel') || 'v1'
if (!['v1', 'latest', 'unstable'].includes(releaseChannel)) {
if (!['v1', 'unstable'].includes(releaseChannel)) {
core.setFailed(
`Invalid \`release-channel\` field: ${releaseChannel}. \`release-channel\` must be "v1" or "unstable" (default is "v1").`
`Invalid \`release-channel\` field: ${releaseChannel}. \`release-channel\` must be "v1".`
)
}
const os = getOs()
Expand Down

0 comments on commit 8a4581a

Please sign in to comment.