Skip to content

Commit

Permalink
updating GitHub pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
agracio committed Sep 18, 2024
1 parent 85768e1 commit b671f85
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ jobs:
const url = 'https://nodejs.org/dist/index.json';
const result = await github.request(url);
console.log(result.data)
//let json = JSON.parse( ${{ steps.node-version-request.outputs.response }});
//for (const el of json.data.sort()) {
// let version = el.version.substring(1, el.version.length) ;
// if(version.startsWith(${{ inputs.build-version }})){
// console.log(version);
// core.setOutput("version", version);
// core.setFailed(version);
// //return version;
// }
//}
let json = JSON.parse(result.data);
for (const el of json.sort()) {
let version = el.version.substring(1, el.version.length) ;
if(version.startsWith(${{ inputs.build-version }})){
console.log(version);
core.setOutput("version", version);
core.setFailed(version);
//return version;
}
}
} catch(err) {
core.error("Error while reading or parsing mochawesome.json")
core.setFailed(err)
Expand Down

0 comments on commit b671f85

Please sign in to comment.