diff --git a/.gitattributes b/.gitattributes index 6db6f157..920a6cf2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -cookbooks.tar.gz filter=lfs diff=lfs merge=lfs -text +compressed/*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.github/workflows/compress-cookbooks.yml b/.github/workflows/compress-cookbooks.yml index 68c105cd..e8cad93c 100644 --- a/.github/workflows/compress-cookbooks.yml +++ b/.github/workflows/compress-cookbooks.yml @@ -10,12 +10,12 @@ jobs: - name: Compress Cookbooks run: | cd .. - tar -czvf cookbooks.tar.gz -C ${{ github.workspace }} . - cp cookbooks.tar.gz ${{ github.workspace }} + tar --exclude='./compressed' -czvf cookbooks.tar.gz -C ${{ github.workspace }} . + mv cookbooks.tar.gz ${{ github.workspace }}/compressed - name: Commit and push run: | git config user.name github-actions git config user.email github-actions@github.com - git add cookbooks.tar.gz + git add compressed/cookbooks.tar.gz git commit -m 'update compressed cookbooks' git push diff --git a/compressed/cookbooks.tar.gz b/compressed/cookbooks.tar.gz new file mode 100644 index 00000000..ec07ae57 --- /dev/null +++ b/compressed/cookbooks.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8e3af74d24723c35ecd6d3c4cd5d05bee51d82b6223121a4dd861b9bfcd707e +size 963354