create compressed file outside of the repo #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |