Compare commits

...

4 Commits

Author SHA1 Message Date
Aryaman Sharma 225354cafd
Merge 164c906376 into 9cabbbd193 2024-04-28 04:02:41 +05:30
Manu 9cabbbd193 Input to change macOS version for building 2024-04-08 16:24:31 +01:00
Aryaman 164c906376 removed redundant where clause #1942 2024-03-06 19:58:09 +05:30
Aryaman baf07a51f1 delete existing sources on profile overwrite #1942 2024-03-06 19:30:00 +05:30
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -130,6 +130,8 @@ class ProfileExport:
# Set the profile ids to be match new profile
for source in self._profile_dict['SourceFileModel']:
source['profile'] = self.id
for source in SourceFileModel.select():
SourceFileModel.delete_by_id(source)
SourceFileModel.insert_many(self._profile_dict['SourceFileModel']).execute()
# Delete added dictionaries to make it match BackupProfileModel