Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Dec 9, 2024
1 parent 133a8c9 commit 8ed49b9
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions node/sign_node_package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,8 @@ runs:
if: ${{ inputs.sign_native == 'true' }}
shell: bash
run: |
cat << EOF > script.js
const { readdirSync } = require('fs');
const { join } = require('path');
const tarFiles = readdirSync(process.argv[2], {
withFileTypes: true,
recursive: true
})
.filter(dirEnt => dirEnt.isFile())
.map(({ name, parentPath }) => join(parentPath, name))
.filter(file => file.includes('build-') && file.includes('.tar.gz'));
process.stdout.write(tarFiles.join('\n'));
process.stdout.write('\n')
EOF
FILENAMES=$(node ./script.js .)
# all prebuilds
FILENAMES=$(find build-* -type f -name '*.tar.gz' | tr '\n' ' ')
FILENAMES="$FILENAMES ${{ env.package_file }}"
echo "FILES_TO_SIGN=${FILENAMES}" >> "$GITHUB_ENV"
Expand Down

0 comments on commit 8ed49b9

Please sign in to comment.