mirror of
https://github.com/borgbase/vorta
synced 2025-01-02 21:25:48 +00:00
Merge branch 'master' into issue1799
This commit is contained in:
commit
3c3c19716d
5 changed files with 57 additions and 5 deletions
10
.github/workflows/build-macos.yml
vendored
10
.github/workflows/build-macos.yml
vendored
|
@ -3,17 +3,21 @@ on:
|
|||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
description: 'Branch to use for building macOS release'
|
||||
description: 'Branch to use for building release'
|
||||
required: true
|
||||
default: 'master'
|
||||
borg_version:
|
||||
description: 'Borg version to package'
|
||||
required: true
|
||||
default: '1.2.1'
|
||||
default: '1.2.8'
|
||||
macos_version:
|
||||
description: 'macOS version for building'
|
||||
required: true
|
||||
default: 'macos-11'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-11
|
||||
runs-on: ${{ github.event.inputs.macos_version }}
|
||||
|
||||
steps:
|
||||
- name: Check out selected branch
|
||||
|
|
|
@ -6,10 +6,13 @@ on:
|
|||
jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/stale@v8
|
||||
with:
|
||||
days-before-issue-stale: 60
|
||||
days-before-issue-stale: 90
|
||||
days-before-pr-stale: -1
|
||||
days-before-issue-close: 7
|
||||
# days-before-pr-close: 10
|
|
@ -56,5 +56,44 @@
|
|||
],
|
||||
"tags": ["type:dev", "editor:android-studio", "os:linux"],
|
||||
"author": "shivansh02"
|
||||
},
|
||||
{
|
||||
"name": "Jetbrains IDEs cache, config, path and logs",
|
||||
"slug": "jetbrains",
|
||||
"patterns": [
|
||||
"fm:*/.config/JetBrains",
|
||||
"fm:*/.cache/JetBrains",
|
||||
"fm:*/.local/share/JetBrains"
|
||||
],
|
||||
"tags": ["type:dev", "editor:jetbrains", "os:linux"],
|
||||
"author": "SAMAD101"
|
||||
},
|
||||
{
|
||||
"name": "AWS artefacts",
|
||||
"slug": "aws-artefacts",
|
||||
"patterns": [
|
||||
"fm:*/.aws"
|
||||
],
|
||||
"tags": ["type:dev", "cloud:aws", "os:linux", "os:darwin"],
|
||||
"author": "SAMAD101"
|
||||
},
|
||||
{
|
||||
"name": "Spotify cache and config files",
|
||||
"slug": "spotify",
|
||||
"patterns": [
|
||||
"fm:*/.cache/spotify",
|
||||
"fm:*/.config/spotify"
|
||||
],
|
||||
"tags": ["type:media", "media:spotify", "os:linux"],
|
||||
"author": "SAMAD101"
|
||||
},
|
||||
{
|
||||
"name": "Docker artefacts",
|
||||
"slug": "docker-artefacts",
|
||||
"patterns": [
|
||||
"fm:*/.docker"
|
||||
],
|
||||
"tags": ["type:dev", "cloud:docker", "os:linux", "os:darwin"],
|
||||
"author": "SAMAD101"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -459,6 +459,7 @@ def post_backup_tasks(self, profile_id):
|
|||
Pruning and checking after successful backup.
|
||||
"""
|
||||
profile = BackupProfileModel.get(id=profile_id)
|
||||
notifier = VortaNotifications.pick()
|
||||
logger.info('Doing post-backup jobs for %s', profile.name)
|
||||
if profile.prune_on:
|
||||
msg = BorgPruneJob.prepare(profile)
|
||||
|
@ -489,6 +490,11 @@ def post_backup_tasks(self, profile_id):
|
|||
self.app.jobs_manager.add_job(job)
|
||||
|
||||
logger.info('Finished background task for profile %s', profile.name)
|
||||
notifier.deliver(
|
||||
self.tr('Vorta Backup'),
|
||||
self.tr('Post Backup Tasks successful for %s' % profile.name),
|
||||
level='info',
|
||||
)
|
||||
|
||||
def remove_job(self, profile_id):
|
||||
if profile_id in self.timers:
|
||||
|
|
|
@ -59,7 +59,7 @@ def build_menu(self):
|
|||
cancel_action.triggered.connect(self.app.backup_cancelled_event.emit)
|
||||
else:
|
||||
status.setText(self.tr('Next Task: %s') % next_task_time)
|
||||
profiles = BackupProfileModel.select()
|
||||
profiles = BackupProfileModel.select().order_by(BackupProfileModel.name)
|
||||
if profiles.count() > 1:
|
||||
profile_menu = menu.addMenu(self.tr('Backup Now'))
|
||||
for profile in profiles:
|
||||
|
|
Loading…
Reference in a new issue