Skip to content

Commit

Permalink
fix: properly take all files
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Nov 7, 2024
1 parent 4bf048d commit b9fa926
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ runs:
GITHUB_TOKEN: ${{ steps.get_installation_token.outputs.token || github.token }}
run: |
git add "${{ inputs.manifestPath }}"
git add -f ${{ github.workspace }}/dist/*.{js,json,map,cjs}
find ${{ github.workspace }}/dist \( -name "*.js" -o -name "*.map" -o -name "*.json" \) -print0 | xargs -0 git
add -f
echo "Changed files:"
echo "$(git diff-index --cached --name-only HEAD)"
if [ -n "$(git diff-index --cached --name-only HEAD)" ]; then
Expand Down Expand Up @@ -187,7 +188,7 @@ runs:
console.log('Adding file:', manifestPath);
const distPath = '${{ github.workspace }}/dist/';
const distFiles = glob.sync(distPath + '**/*.{js,json,map,cjs}');
const distFiles = glob.sync(distPath + '**/*.{js,map,json}');
const treeEntries = [
{
path: manifestPath,
Expand Down

0 comments on commit b9fa926

Please sign in to comment.