From b9fa92646afdd9708ab428c3649ca78475038056 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Fri, 8 Nov 2024 02:14:33 +0900 Subject: [PATCH] fix: properly take all files --- action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 6d23663..bf450b6 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -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,