mirror of https://github.com/borgbase/vorta
Compare commits
6 Commits
a362ec3227
...
b8b5667157
Author | SHA1 | Date |
---|---|---|
![]() |
b8b5667157 | |
![]() |
ee8f805577 | |
![]() |
9cabbbd193 | |
![]() |
3268bf1599 | |
![]() |
7642002573 | |
![]() |
58137f004d |
|
@ -3,17 +3,21 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
branch:
|
branch:
|
||||||
description: 'Branch to use for building macOS release'
|
description: 'Branch to use for building release'
|
||||||
required: true
|
required: true
|
||||||
default: 'master'
|
default: 'master'
|
||||||
borg_version:
|
borg_version:
|
||||||
description: 'Borg version to package'
|
description: 'Borg version to package'
|
||||||
required: true
|
required: true
|
||||||
default: '1.2.1'
|
default: '1.2.8'
|
||||||
|
macos_version:
|
||||||
|
description: 'macOS version for building'
|
||||||
|
required: true
|
||||||
|
default: 'macos-11'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: macos-11
|
runs-on: ${{ github.event.inputs.macos_version }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out selected branch
|
- name: Check out selected branch
|
||||||
|
|
|
@ -6,10 +6,13 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v8
|
- uses: actions/stale@v8
|
||||||
with:
|
with:
|
||||||
days-before-issue-stale: 60
|
days-before-issue-stale: 90
|
||||||
days-before-pr-stale: -1
|
days-before-pr-stale: -1
|
||||||
days-before-issue-close: 7
|
days-before-issue-close: 7
|
||||||
# days-before-pr-close: 10
|
# days-before-pr-close: 10
|
|
@ -56,5 +56,44 @@
|
||||||
],
|
],
|
||||||
"tags": ["type:dev", "editor:android-studio", "os:linux"],
|
"tags": ["type:dev", "editor:android-studio", "os:linux"],
|
||||||
"author": "shivansh02"
|
"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 @@ class VortaScheduler(QtCore.QObject):
|
||||||
Pruning and checking after successful backup.
|
Pruning and checking after successful backup.
|
||||||
"""
|
"""
|
||||||
profile = BackupProfileModel.get(id=profile_id)
|
profile = BackupProfileModel.get(id=profile_id)
|
||||||
|
notifier = VortaNotifications.pick()
|
||||||
logger.info('Doing post-backup jobs for %s', profile.name)
|
logger.info('Doing post-backup jobs for %s', profile.name)
|
||||||
if profile.prune_on:
|
if profile.prune_on:
|
||||||
msg = BorgPruneJob.prepare(profile)
|
msg = BorgPruneJob.prepare(profile)
|
||||||
|
@ -489,6 +490,11 @@ class VortaScheduler(QtCore.QObject):
|
||||||
self.app.jobs_manager.add_job(job)
|
self.app.jobs_manager.add_job(job)
|
||||||
|
|
||||||
logger.info('Finished background task for profile %s', profile.name)
|
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):
|
def remove_job(self, profile_id):
|
||||||
if profile_id in self.timers:
|
if profile_id in self.timers:
|
||||||
|
|
Loading…
Reference in New Issue