From 3d653524221725dfe639118c831fe9a716845716 Mon Sep 17 00:00:00 2001 From: Ivan Shumkov Date: Fri, 3 Nov 2023 15:38:54 +0700 Subject: [PATCH] ci: use file with file changes --- .github/workflows/tests-build-js.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests-build-js.yml b/.github/workflows/tests-build-js.yml index 68a892a42f..cd3fb330bc 100644 --- a/.github/workflows/tests-build-js.yml +++ b/.github/workflows/tests-build-js.yml @@ -57,7 +57,7 @@ jobs: - name: Ignore only already cached artifacts run: | find . -name '.gitignore' -exec rm -f {} + - echo ".yarn/unplugged" >> .gitignore + echo ".yarn" >> .gitignore echo "target" >> .gitignore echo "node_modules" >> .gitignore echo ".nyc_output" >> .gitignore @@ -68,10 +68,10 @@ jobs: - name: Get modified files id: diff - run: git ls-files --others --exclude-standard + run: git ls-files --others --exclude-standard >> artifacts_list.txt if: ${{ steps.cache.outputs.cache-hit != 'true' }} - name: Create an archive of built files run: | - echo "${{ steps.diff.outputs.stdout }}" | xargs tar -cf build-js-artifacts-${{ github.sha }}.tar + xargs -a artifacts_list.txt tar cvf build-js-artifacts-${{ github.sha }}.tar if: ${{ steps.cache.outputs.cache-hit != 'true' }}