Skip to content

create compressed file outside of the repo #5

create compressed file outside of the repo

create compressed file outside of the repo #5

name: Compress Cookbooks
on: [push]
jobs:
compress:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Compress Cookbooks
run: |
cd ..
tar -czvf cookbooks.tar.gz -C ${{ github.workspace }} .
cp cookbooks.tar.gz ${{ github.workspace }}
- name: Commit and push
run: |
git config user.name github-actions
git config user.email [email protected]
git add cookbooks.tar.gz
git commit -m 'update compressed cookbooks'
git push