diff --git a/.github/workflows/pre.yaml b/.github/workflows/pre.yaml new file mode 100644 index 0000000..a736593 --- /dev/null +++ b/.github/workflows/pre.yaml @@ -0,0 +1,20 @@ +--- +name: Pre Commit Lite + +on: + pull_request: + push: + branches: [main] + +jobs: + pre-commit: + name: pre-commit + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.x + - uses: pre-commit/action@v3.0.1 + - uses: pre-commit-ci/lite-action@v1.0.2 + if: always() diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 23d2208..db7e827 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,14 +2,10 @@ ci: autofix_commit_msg: | [pre-commit.ci] auto fixes from pre-commit.com hooks - - for more information, see https://pre-commit.ci autofix_prs: true - autoupdate_branch: '' + autoupdate_branch: 'main' autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' autoupdate_schedule: weekly - skip: [] - submodules: false repos: - repo: https://github.com/Yelp/detect-secrets @@ -34,8 +30,3 @@ repos: - id: pretty-format-json args: [--autofix] - id: trailing-whitespace - - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.35.0 - hooks: - - id: markdownlint-fix - args: [--fix] diff --git a/README.md b/README.md index 6b27af8..160afd9 100644 --- a/README.md +++ b/README.md @@ -13,25 +13,17 @@ needs ## Configure ### Environment Variables -- NODE_TLS_REJECT_UNAUTHORIZED - - set to 0 if you have issues with connecting to plain http -- ACTUAL_URL - - URL to ActualBudget server -- ACTUAL_PASSWORD - - Password for ActualBudget server -- ACTUAL_SYNC_ID - - Special ID for ActualServer, can be found under Settings -> Advanced Settings --> Sync ID -- DAYS_TO_SYNC - - How many days need to be synced from now - - If count of days bigger than 7, this Service will sync data by 7 days till the end data -- USE_NODE_CRON - - Determines if container will use internal cron or it will closes after synchronising data -- MONO_TOKEN - - Token to your monobank account -- MONO_CARD_N - - N means any numeric value, from 0 and incrementing by 1(like: MONO_CARD_0, MONO_CARD_1 ...) - - its value is a pair of monobank card and actual budget id or name in form MONO_CARD:ACTUAL_ID or MONO_CARD:ACTUAL_NAME + +| Environment Variable | Description | +| --- | --- | +| NODE_TLS_REJECT_UNAUTHORIZED | Set to 0 if you have issues with connecting to plain http | +| ACTUAL_URL | URL to ActualBudget server | +| ACTUAL_PASSWORD | Password for ActualBudget server | +| ACTUAL_SYNC_ID | Special ID for ActualServer, can be found under Settings -> Advanced Settings -> Sync ID | +| DAYS_TO_SYNC | How many days need to be synced from now. If count of days bigger than 7, this Service will sync data by 7 days till the end data | +| USE_NODE_CRON | Determines if container will use internal cron or it will closes after synchronising data | +| MONO_TOKEN | Token to your monobank account | +| MONO_CARD_N | N means any numeric value, from 0 and incrementing by 1(like: MONO_CARD_0, MONO_CARD_1 ...). Its value is a pair of monobank card and actual budget id or name in form MONO_CARD:ACTUAL_ID or MONO_CARD:ACTUAL_NAME | ### Deduplication @@ -44,3 +36,5 @@ For deduplication to take place you should not Hide decimals (Settings/Formattin - [x] more that one card - [ ] docs - [ ] helm/k8s +- [ ] publish on npm +- [ ] use github docker registry