Skip to content

Commit ed3eab5

Browse files
author
Danny Hermes
committedFeb 9, 2022
Releasing (2022.02.09) with bugfix.
Fixing Node.js Windows value for `os.platform()` (we were checking for `windows`, but it is `win32`). See: https://nodejs.org/docs/latest-v16.x/api/os.html#osplatform
1 parent a876ea0 commit ed3eab5

8 files changed

+7
-7
lines changed
 

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ For more information on how this GitHub Action is developed, see the
7979
[DEVELOPMENT][4] document.
8080

8181
[1]: https://docs.github.com/en/free-pro-team@latest/rest/reference/repos/#compare-two-commits
82-
[2]: https://github.com/blend/require-conditional-status-checks/blob/070363af576e7c117f8f331c6cc11c53c047873a/_images/example-run-public.png?raw=true
83-
[3]: https://github.com/blend/require-conditional-status-checks/blob/070363af576e7c117f8f331c6cc11c53c047873a/_images/example-run-ghe.png?raw=true
84-
[4]: https://github.com/blend/require-conditional-status-checks/blob/070363af576e7c117f8f331c6cc11c53c047873a/DEVELOPMENT.md
85-
[5]: https://github.com/blend/require-conditional-status-checks/tree/070363af576e7c117f8f331c6cc11c53c047873a
82+
[2]: https://github.com/blend/require-conditional-status-checks/blob/4b7de504558cac5083795023fe26985549ef6e0b/_images/example-run-public.png?raw=true
83+
[3]: https://github.com/blend/require-conditional-status-checks/blob/4b7de504558cac5083795023fe26985549ef6e0b/_images/example-run-ghe.png?raw=true
84+
[4]: https://github.com/blend/require-conditional-status-checks/blob/4b7de504558cac5083795023fe26985549ef6e0b/DEVELOPMENT.md
85+
[5]: https://github.com/blend/require-conditional-status-checks/tree/4b7de504558cac5083795023fe26985549ef6e0b

‎index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const childProcess = require('child_process')
1616
const os = require('os')
1717
const process = require('process')
1818

19-
const VERSION = '070363af576e7c117f8f331c6cc11c53c047873a'
19+
const VERSION = '4b7de504558cac5083795023fe26985549ef6e0b'
2020

2121
function chooseBinary() {
2222
const platform = os.platform()
@@ -34,10 +34,10 @@ function chooseBinary() {
3434
if (platform === 'linux' && arch === 'arm64') {
3535
return `main-linux-arm64-${VERSION}`
3636
}
37-
if (platform === 'windows' && arch === 'x64') {
37+
if (platform === 'win32' && arch === 'x64') {
3838
return `main-windows-amd64-${VERSION}`
3939
}
40-
if (platform === 'windows' && arch === 'arm64') {
40+
if (platform === 'win32' && arch === 'arm64') {
4141
return `main-windows-arm64-${VERSION}`
4242
}
4343

0 commit comments

Comments
 (0)
Please sign in to comment.