mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-23 00:05:09 +00:00
conditions are fixed in remove site yml
This commit is contained in:
parent
5f001f71e0
commit
fa09ba9ff3
1 changed files with 40 additions and 39 deletions
11
.github/workflows/remove-site.yml
vendored
11
.github/workflows/remove-site.yml
vendored
|
|
@ -173,7 +173,7 @@ jobs:
|
|||
"
|
||||
|
||||
- name: Remove backup files if needed
|
||||
if: ${{ github.event.inputs.should_remove_backups == true }}
|
||||
if: ${{ github.event.inputs.should_remove_backups == 'true' }}
|
||||
run: |
|
||||
echo "🗑️ Removing backup files for site: ${{ github.event.inputs.site_name }}"
|
||||
echo "Environment: ${{ github.event.inputs.environment }}"
|
||||
|
|
@ -187,12 +187,15 @@ jobs:
|
|||
|
||||
|
||||
- name: Display backup information
|
||||
if: ${{ github.event.inputs.should_remove_backups == false }}
|
||||
if: ${{ github.event.inputs.should_remove_backups == 'false' }}
|
||||
run: |
|
||||
# Find and display the latest backup files after removal
|
||||
echo ''
|
||||
echo '📦 Searching for the backup created during removal...'
|
||||
|
||||
ssh ${{ env.HETZNER_USER }}@${{ env.HETZNER_HOST }} "
|
||||
cd ${{ env.DEPLOY_PATH }}
|
||||
|
||||
BACKUP_INFO=\$(docker compose exec -T backend bash -c \"
|
||||
cd ~/frappe-bench/archived/sites/${{ github.event.inputs.site_name }}/private/backups 2>/dev/null || exit 1
|
||||
|
||||
|
|
@ -227,6 +230,4 @@ jobs:
|
|||
else
|
||||
echo "⚠️ Could not find the archived backup (but site was removed)"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
"
|
||||
|
|
|
|||
Loading…
Reference in a new issue