Skip to content

Commit

Permalink
Merge pull request #12 from rwx-research/add-unstable-release-channel
Browse files Browse the repository at this point in the history
Add unstable release channel
  • Loading branch information
TAGraves authored Nov 23, 2022
2 parents a8acc90 + 3c8ca27 commit 1603303
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous_integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: ./
with:
access-token: ${{ secrets.RWX_ACCESS_TOKEN }}
- run: abq --version | grep '^abq 0\.'
- run: abq --version | grep '^abq 1\.'

lint:
name: Lint
Expand Down
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'].includes(releaseChannel)) {
core.setFailed(`Invalid \`release-channel\` field: ${releaseChannel}. \`release-channel\` must be "v1" or "latest" (default is "v1").`);
if (!['v1', 'latest', 'unstable'].includes(releaseChannel)) {
core.setFailed(`Invalid \`release-channel\` field: ${releaseChannel}. \`release-channel\` must be "v1" or "unstable" (default is "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.2",
"version": "1.0.3",
"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'].includes(releaseChannel)) {
if (!['v1', 'latest', 'unstable'].includes(releaseChannel)) {
core.setFailed(
`Invalid \`release-channel\` field: ${releaseChannel}. \`release-channel\` must be "v1" or "latest" (default is "v1").`
`Invalid \`release-channel\` field: ${releaseChannel}. \`release-channel\` must be "v1" or "unstable" (default is "v1").`
)
}
const os = getOs()
Expand Down

0 comments on commit 1603303

Please sign in to comment.