Skip to content

Commit

Permalink
ci: use file with file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Nov 3, 2023
1 parent 436215a commit 3d65352
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests-build-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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' }}

0 comments on commit 3d65352

Please sign in to comment.