mirror of
https://github.com/haskell-actions/run-ormolu.git
synced 2024-11-29 12:22:17 +03:00
Use Ormolu 0.7.7.0 as the latest version
This commit is contained in:
parent
15b0083a0e
commit
8a47a49f12
10
dist/index.js
vendored
10
dist/index.js
vendored
@ -18,10 +18,10 @@ const exec = __webpack_require__(1514);
|
|||||||
const glob = __webpack_require__(8090);
|
const glob = __webpack_require__(8090);
|
||||||
|
|
||||||
const input_version = core.getInput('version');
|
const input_version = core.getInput('version');
|
||||||
const ormolu_version = input_version === 'latest' ? '0.7.4.0' : input_version;
|
const ormolu_version = input_version === 'latest' ? '0.7.7.0' : input_version;
|
||||||
const ormolu_linux_url = 'https://github.com/tweag/ormolu/releases/download/' + ormolu_version + '/ormolu-Linux.zip';
|
const ormolu_linux_url = 'https://github.com/tweag/ormolu/releases/download/' + ormolu_version + '/ormolu-x86_64-linux.zip';
|
||||||
const ormolu_windows_url = 'https://github.com/tweag/ormolu/releases/download/' + ormolu_version + '/ormolu-Windows.zip';
|
const ormolu_windows_url = 'https://github.com/tweag/ormolu/releases/download/' + ormolu_version + '/ormolu-x86_64-windows.zip';
|
||||||
const ormolu_macos_url = 'https://github.com/tweag/ormolu/releases/download/' + ormolu_version + '/ormolu-macOS.zip';
|
const ormolu_darwin_url = 'https://github.com/tweag/ormolu/releases/download/' + ormolu_version + '/ormolu-aarch64-darwin.zip';
|
||||||
|
|
||||||
const input_pattern = core.getInput('pattern');
|
const input_pattern = core.getInput('pattern');
|
||||||
const input_respect_cabal_files = core.getInput('respect-cabal-files').toUpperCase() !== 'FALSE';
|
const input_respect_cabal_files = core.getInput('respect-cabal-files').toUpperCase() !== 'FALSE';
|
||||||
@ -40,7 +40,7 @@ async function run() {
|
|||||||
ormolu_archive = await tool_cache.downloadTool(ormolu_windows_url);
|
ormolu_archive = await tool_cache.downloadTool(ormolu_windows_url);
|
||||||
}
|
}
|
||||||
else if (process.platform === 'darwin') {
|
else if (process.platform === 'darwin') {
|
||||||
ormolu_archive = await tool_cache.downloadTool(ormolu_macos_url);
|
ormolu_archive = await tool_cache.downloadTool(ormolu_darwin_url);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ormolu_archive = await tool_cache.downloadTool(ormolu_linux_url);
|
ormolu_archive = await tool_cache.downloadTool(ormolu_linux_url);
|
||||||
|
10
index.js
10
index.js
@ -7,10 +7,10 @@ const exec = require('@actions/exec');
|
|||||||
const glob = require('@actions/glob');
|
const glob = require('@actions/glob');
|
||||||
|
|
||||||
const input_version = core.getInput('version');
|
const input_version = core.getInput('version');
|
||||||
const ormolu_version = input_version === 'latest' ? '0.7.4.0' : input_version;
|
const ormolu_version = input_version === 'latest' ? '0.7.7.0' : input_version;
|
||||||
const ormolu_linux_url = 'https://github.com/tweag/ormolu/releases/download/' + ormolu_version + '/ormolu-Linux.zip';
|
const ormolu_linux_url = 'https://github.com/tweag/ormolu/releases/download/' + ormolu_version + '/ormolu-x86_64-linux.zip';
|
||||||
const ormolu_windows_url = 'https://github.com/tweag/ormolu/releases/download/' + ormolu_version + '/ormolu-Windows.zip';
|
const ormolu_windows_url = 'https://github.com/tweag/ormolu/releases/download/' + ormolu_version + '/ormolu-x86_64-windows.zip';
|
||||||
const ormolu_macos_url = 'https://github.com/tweag/ormolu/releases/download/' + ormolu_version + '/ormolu-macOS.zip';
|
const ormolu_darwin_url = 'https://github.com/tweag/ormolu/releases/download/' + ormolu_version + '/ormolu-aarch64-darwin.zip';
|
||||||
|
|
||||||
const input_pattern = core.getInput('pattern');
|
const input_pattern = core.getInput('pattern');
|
||||||
const input_respect_cabal_files = core.getInput('respect-cabal-files').toUpperCase() !== 'FALSE';
|
const input_respect_cabal_files = core.getInput('respect-cabal-files').toUpperCase() !== 'FALSE';
|
||||||
@ -29,7 +29,7 @@ async function run() {
|
|||||||
ormolu_archive = await tool_cache.downloadTool(ormolu_windows_url);
|
ormolu_archive = await tool_cache.downloadTool(ormolu_windows_url);
|
||||||
}
|
}
|
||||||
else if (process.platform === 'darwin') {
|
else if (process.platform === 'darwin') {
|
||||||
ormolu_archive = await tool_cache.downloadTool(ormolu_macos_url);
|
ormolu_archive = await tool_cache.downloadTool(ormolu_darwin_url);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ormolu_archive = await tool_cache.downloadTool(ormolu_linux_url);
|
ormolu_archive = await tool_cache.downloadTool(ormolu_linux_url);
|
||||||
|
Loading…
Reference in New Issue
Block a user