Skip to content

Commit

Permalink
Added beta-4 and beta-5 to action (#244)
Browse files Browse the repository at this point in the history
* Added beta-4 and beta-5

* dist update
  • Loading branch information
Braqzen committed Apr 10, 2024
1 parent 8c9207d commit 18f4ea5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install Fuel toolchain
uses: FuelLabs/action-fuel-toolchain@v0.6.0
with:
toolchain: latest # or nightly, beta-1, beta-2, beta-3
toolchain: latest # or nightly, beta-1, beta-2, beta-3, beta-4, beta-5
```
## Inputs
Expand Down
2 changes: 1 addition & 1 deletion __tests__/args.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('action-fuel-toolchain', () => {
})

test('with wrong toolchain and date should fail', () => {
['beta-1', 'beta-2', 'beta-3'].map(tc => {
['beta-1', 'beta-2', 'beta-3', 'beta-4', 'beta-5'].map(tc => {
process.env['INPUT_TOOLCHAIN'] = tc
process.env['INPUT_NAME'] = ''
process.env['INPUT_DATE'] = '2023-01-18'
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ async function run(): Promise<void> {
switch (opts.toolchain) {
case 'stable':
throw new Error(
"${opts.toolchain} is not supported yet. Use one of: ['latest', 'nightly', 'beta-1', 'beta-2', 'beta-3']"
"${opts.toolchain} is not supported yet. Use one of: ['latest', 'nightly', 'beta-1', 'beta-2', 'beta-3', 'beta-4', 'beta-5']"
)
case 'nightly':
case 'latest':
case 'beta-1':
case 'beta-2':
case 'beta-3':
case 'beta-4':
case 'beta-5':
let toolchain = opts.toolchain
if (opts.date) {
toolchain += '-' + opts.date
Expand All @@ -26,7 +28,7 @@ async function run(): Promise<void> {
break
default:
throw new Error(
"Unknown toolchain. Use one of: ['latest', 'nightly', 'beta-1', 'beta-2', 'beta-3']"
"Unknown toolchain. Use one of: ['latest', 'nightly', 'beta-1', 'beta-2', 'beta-3', 'beta-4', 'beta-5']"
)
}
} else if (opts.name) {
Expand Down

0 comments on commit 18f4ea5

Please sign in to comment.