try 4
This commit is contained in:
@@ -16,16 +16,15 @@ jobs:
|
||||
|
||||
- name: Compress repository
|
||||
run: |
|
||||
tar -czf repo-backup-$(date +%Y%m%d-%H%M%S).tar.gz \
|
||||
BACKUP_FILE="repo-backup-$(date +%Y%m%d-%H%M%S).tar.gz"
|
||||
tar -czf "../$BACKUP_FILE" \
|
||||
--exclude='.git' \
|
||||
--exclude='node_modules' \
|
||||
--exclude='__pycache__' \
|
||||
--exclude='*.pyc' \
|
||||
--exclude='db.sqlite3' \
|
||||
--exclude='.env*' \
|
||||
--exclude='*.tar.gz' \
|
||||
--warning=no-file-changed \
|
||||
.
|
||||
. && mv "../$BACKUP_FILE" . || true
|
||||
|
||||
- name: Send compressed repo via email
|
||||
uses: dawidd6/action-send-mail@v3
|
||||
|
||||
Reference in New Issue
Block a user