3 Commits
1.0.3 ... 1.0.4

5 changed files with 23 additions and 12 deletions

View File

@@ -5,13 +5,15 @@ on:
branches: branches:
- "dev" - "dev"
paths: paths:
- "cdl_downloader**" - "src**"
- "requirements.txt"
pull_request: pull_request:
branches: branches:
- "dev" - "dev"
- "main" - "main"
paths: paths:
- "cdl_downloader**" - "src**"
- "requirements.txt"
jobs: jobs:
analyze: analyze:
@@ -26,7 +28,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r cdl_downloader/requirements.txt pip install -r requirements.txt
pip install pylint pip install pylint
- name: Analysing the code with pylint - name: Analysing the code with pylint
run: pylint --exit-zero $(git ls-files 'cdl_downloader/*.py') run: pylint --exit-zero $(git ls-files 'src/*.py')

View File

@@ -5,7 +5,8 @@ on:
branches: branches:
- "main" - "main"
paths: paths:
- "cdl_downloader**" - "src**"
- "requirements.txt"
jobs: jobs:
analyze: analyze:
@@ -20,10 +21,10 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r cdl_downloader/requirements.txt pip install -r requirements.txt
pip install pylint pip install pylint
- name: Analysing the code with pylint - name: Analysing the code with pylint
run: pylint --exit-zero $(git ls-files 'cdl_downloader/*.py') run: pylint --exit-zero $(git ls-files 'src/*.py')
publish: publish:
name: Publish script name: Publish script
needs: analyze needs: analyze
@@ -45,18 +46,24 @@ jobs:
id: gitversion id: gitversion
with: with:
configFilePath: ./.gitea/config/gitversion.yml configFilePath: ./.gitea/config/gitversion.yml
- name: Create package root directory
run: |
mkdir package
mkdir package/cdl_downloader
cp -r src/* package/cdl_downloader/
cp requirements.txt package/requirements.txt
- name: Create .TAR.GZ archive - name: Create .TAR.GZ archive
uses: ksm2/archive-action@v1 uses: ksm2/archive-action@v1
with: with:
format: "tar.gz" format: "tar.gz"
name: cdl_downloader_${{steps.gitversion.outputs.SemVer}} name: cdl_downloader_${{steps.gitversion.outputs.SemVer}}
root-directory: "cdl_downloader" root-directory: "package"
- name: Create .ZIP archive - name: Create .ZIP archive
uses: ksm2/archive-action@v1 uses: ksm2/archive-action@v1
with: with:
format: "zip" format: "zip"
name: cdl_downloader_${{steps.gitversion.outputs.SemVer}} name: cdl_downloader_${{steps.gitversion.outputs.SemVer}}
root-directory: "cdl_downloader" root-directory: "package"
- name: Create Release - name: Create Release
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1
with: with:

View File

@@ -22,7 +22,7 @@
You can also use `requirements.txt` file to install PIP dependencies You can also use `requirements.txt` file to install PIP dependencies
``` ```
pip install -r cdl_downloader/requirements.txt pip install -r requirements.txt
``` ```
## Usage ## Usage
@@ -62,8 +62,10 @@ In case of success:
{ {
"success": true, "success": true,
"id": "e1ce9235-9c36-4b7a-b245-e2f1c3d3b1c0", "id": "e1ce9235-9c36-4b7a-b245-e2f1c3d3b1c0",
"fileName": "/mnt/example/download_dir/e1ce9235-9c36-4b7a-b245-e2f1c3d3b1c0/TEST_FILE.pdf", "fileName": "TEST_FILE.pdf",
"formattedDate": "2026.01.31", "formattedDate": "2026.01.31",
"resultTableHTML": "<table>...</table>" "resultTableHTML": "<table>...</table>"
} }
``` ```
With `--path /mnt/example/download_dir/` file will be saved under `/mnt/example/download_dir/e1ce9235-9c36-4b7a-b245-e2f1c3d3b1c0/TEST_FILE.pdf`