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 5c5b0a5 commit 2dbdb53
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ jobs:
name: build ${{ matrix.os }}-v${{ inputs.build-version }}
steps:

- name: Checkout code
uses: actions/checkout@v4

- name: Read mochawesome.json
uses: actions/github-script@v7
id: node-version
Expand All @@ -45,9 +42,9 @@ jobs:
try {
const url = 'https://nodejs.org/dist/index.json';
const result = await github.request(url);
console.log(result)
let json = JSON.parse(result);
for (const el of json.sort()) {
console.log(json.data);
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);
Expand All @@ -61,6 +58,8 @@ jobs:
core.setFailed(err)
}
- name: Checkout code
uses: actions/checkout@v4

- name: Resolve Electron version for test
id: electron-test-version
Expand Down

0 comments on commit 2dbdb53

Please sign in to comment.