Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkkrp committed Sep 14, 2021
1 parent 891c844 commit 96a446b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const input_follow_symbolic_links = core.getInput('follow-symbolic-links').toUpp
const input_extra_args = core.getInput('extra-args');

async function run() {
try {
// try {

// Download ormolu archive

Expand All @@ -46,7 +46,8 @@ async function run() {

// Unpack the archive

const ormolu_extracted_dir = tool_cache.extractZip(ormolu_archive);
const ormolu_extracted_dir = 'extracted_archive';
tool_cache.extractZip(ormolu_archive, ormolu_extracted_dir);
const ormolu_extracted_path = path__WEBPACK_IMPORTED_MODULE_0__.join(ormolu_extracted_dir, 'ormolu');

// Cache ormolu executable
Expand Down Expand Up @@ -106,9 +107,10 @@ async function run() {
core.warning("The glob patterns did not match any source files");
}

} catch (error) {
core.setFailed("Ormolu detected unformatted files");
}
// }
// catch (error) {
// core.setFailed("Ormolu detected unformatted files");
// }
}

run();
Expand Down
12 changes: 7 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const input_follow_symbolic_links = core.getInput('follow-symbolic-links').toUpp
const input_extra_args = core.getInput('extra-args');

async function run() {
try {
// try {

// Download ormolu archive

Expand All @@ -35,7 +35,8 @@ async function run() {

// Unpack the archive

const ormolu_extracted_dir = tool_cache.extractZip(ormolu_archive);
const ormolu_extracted_dir = 'extracted_archive';
tool_cache.extractZip(ormolu_archive, ormolu_extracted_dir);
const ormolu_extracted_path = path.join(ormolu_extracted_dir, 'ormolu');

// Cache ormolu executable
Expand Down Expand Up @@ -95,9 +96,10 @@ async function run() {
core.warning("The glob patterns did not match any source files");
}

} catch (error) {
core.setFailed("Ormolu detected unformatted files");
}
// }
// catch (error) {
// core.setFailed("Ormolu detected unformatted files");
// }
}

run();

0 comments on commit 96a446b

Please sign in to comment.