From b007d5a4e2183da2b591f657903d5415906fbe54 Mon Sep 17 00:00:00 2001 From: 117503445 Date: Wed, 20 Sep 2023 20:17:08 +0800 Subject: [PATCH 1/2] feat: fc version warn Signed-off-by: 117503445 --- src/flow_pdf/flow_pdf/fc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/flow_pdf/flow_pdf/fc.py b/src/flow_pdf/flow_pdf/fc.py index 043b60e..9130ff4 100644 --- a/src/flow_pdf/flow_pdf/fc.py +++ b/src/flow_pdf/flow_pdf/fc.py @@ -7,7 +7,10 @@ import shutil logger = create_main_logger() -logger.info(f"version: {version}") +if version == "dev": + logger.warning("dev mode, version is not set") +else: + logger.info(f"version: {version}") eventsStr = os.getenv("FC_CUSTOM_CONTAINER_EVENT") From 2530281d35efde5bb1b5949b5c87bed6c52f3eea Mon Sep 17 00:00:00 2001 From: 117503445 Date: Wed, 20 Sep 2023 20:18:28 +0800 Subject: [PATCH 2/2] fix: ci write git info Signed-off-by: 117503445 --- .github/workflows/flow-pdf-docker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/flow-pdf-docker.yaml b/.github/workflows/flow-pdf-docker.yaml index 4552f2e..123e5ac 100644 --- a/.github/workflows/flow-pdf-docker.yaml +++ b/.github/workflows/flow-pdf-docker.yaml @@ -18,7 +18,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - run: cd src/be-fc && ../../script/write_git_info.sh + - run: cd src/flow_pdf && ../../script/write_git_info.sh env: SHA: ${{ github.sha }}