Skip to content

Commit

Permalink
Added bash extension for urbackup installer
Browse files Browse the repository at this point in the history
- CI/CD Tweak: Only publish new versions to pypi when merging a feature from a PR or a new release is created
  • Loading branch information
judahpaul16 committed Apr 28, 2024
1 parent 9182522 commit f2dfe6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
publish-testpypi:
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'pull_request')
if: github.ref == 'refs/heads/main' && (github.event_name == 'release' || github.event_name == 'pull_request')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
Expand All @@ -89,7 +89,7 @@ jobs:
deploy:
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'pull_request')
if: github.ref == 'refs/heads/main' && (github.event_name == 'release' || github.event_name == 'pull_request')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion dirconfig/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def check_and_install_urbackup_client(backup_config):
logging.info("UrBackup client not running. Attempting installation...")
# Determine OS type for choosing the correct installer
os_type = installer_os.Linux if os.name != 'nt' else installer_os.Windows
installer_filename = "urbackup_client_installer" + (".exe" if os_type == installer_os.Windows else "")
installer_filename = "urbackup_client_installer" + (".exe" if os_type == installer_os.Windows else ".sh")
backup_server = urbackup_server(
server_url=backup_config['connection']['server'],
server_username=backup_config['connection']['username'],
Expand Down

0 comments on commit f2dfe6c

Please sign in to comment.