Compare commits
11 Commits
v0.2.2
...
4e87bd4a80
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e87bd4a80 | |||
| 553dffae1f | |||
| 7ea7181947 | |||
| dfd8f242e8 | |||
| 4dc7f8dc15 | |||
| b5d635d92e | |||
| 752c2a37ae | |||
| 069ffd94e3 | |||
| 8a778247ca | |||
| 6eaf0a795d | |||
| 576ef895e0 |
@@ -12,8 +12,10 @@ inputs:
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Add pipx to PATH
|
||||
run: echo "/root/.local/bin" >> ${GITHUB_PATH}
|
||||
- name: Install poetry
|
||||
run: pip install poetry
|
||||
run: pipx install poetry
|
||||
- name: Install poetry package
|
||||
run: poetry install --no-interaction ${{ inputs.poetry_install_args }}
|
||||
shell: bash
|
||||
|
||||
@@ -17,8 +17,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Add pipx to PATH
|
||||
run: echo "/root/.local/bin" >> ${GITHUB_PATH}
|
||||
- name: Install poetry
|
||||
run: pip install poetry
|
||||
run: pipx install poetry
|
||||
- name: Build package
|
||||
run: poetry build
|
||||
- name: Install package
|
||||
|
||||
@@ -27,6 +27,12 @@ from ._seafile import (
|
||||
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("-c", "--configdir", required=True, help="The config directory")
|
||||
parser.add_argument(
|
||||
"-l",
|
||||
"--logfile",
|
||||
required=True,
|
||||
help="The path to the logfile. Default: <configdir>/seafile_mirror.log",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-d",
|
||||
"--dry",
|
||||
@@ -59,7 +65,10 @@ def main(): # pylint: disable=too-many-locals, too-many-statements
|
||||
configdir = args.configdir.rstrip("/") + "/"
|
||||
configfile = configdir + "seafile_mirror.conf.yaml"
|
||||
cachefile = configdir + ".seafile_mirror.db.json"
|
||||
logfile = configdir + "seafile_mirror.log"
|
||||
if args.logfile:
|
||||
logfile = args.logfile
|
||||
else:
|
||||
logfile = configdir + "seafile_mirror.log"
|
||||
|
||||
# Logging
|
||||
log = logging.getLogger()
|
||||
|
||||
Reference in New Issue
Block a user