Skip to content

Commit 8ed49b9

Browse files
rebase
1 parent 133a8c9 commit 8ed49b9

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

node/sign_node_package/action.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,8 @@ runs:
5555
if: ${{ inputs.sign_native == 'true' }}
5656
shell: bash
5757
run: |
58-
cat << EOF > script.js
59-
const { readdirSync } = require('fs');
60-
const { join } = require('path');
61-
62-
const tarFiles = readdirSync(process.argv[2], {
63-
withFileTypes: true,
64-
recursive: true
65-
})
66-
.filter(dirEnt => dirEnt.isFile())
67-
.map(({ name, parentPath }) => join(parentPath, name))
68-
.filter(file => file.includes('build-') && file.includes('.tar.gz'));
69-
70-
process.stdout.write(tarFiles.join('\n'));
71-
process.stdout.write('\n')
72-
EOF
73-
74-
FILENAMES=$(node ./script.js .)
58+
# all prebuilds
59+
FILENAMES=$(find build-* -type f -name '*.tar.gz' | tr '\n' ' ')
7560
FILENAMES="$FILENAMES ${{ env.package_file }}"
7661
echo "FILES_TO_SIGN=${FILENAMES}" >> "$GITHUB_ENV"
7762

0 commit comments

Comments
 (0)