diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 066a331df..232be7ec3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -31,13 +31,13 @@ jobs: run: | echo """ import json, sys, os - with open(f"src{os.sep}taipy{os.sep}gui{os.sep}version.json") as version_file: + with open(f\"src{os.sep}taipy{os.sep}gui{os.sep}version.json\") as version_file: version_o = json.load(version_file) - version = f'{version_o.get("major")}.{version_o.get("minor")}.{version_o.get("patch")}' - if vext := version_o.get("ext"): + version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}' + if vext := version_o.get(\"ext\"): version = f'{version}.{vext}' if version != sys.argv[1]: - raise ValueError(f"Invalid version {version} / {sys.argv[1]}") + raise ValueError(f\"Invalid version {version} / {sys.argv[1]}\") """ > /tmp/check1.py python /tmp/check1.py "${{ github.event.inputs.version }}" @@ -45,9 +45,9 @@ jobs: run: | echo """ import json, sys, os - with open(f"src{os.sep}taipy{os.sep}gui{os.sep}version.json") as version_file: + with open(f\"src{os.sep}taipy{os.sep}gui{os.sep}version.json\") as version_file: version = json.load(version_file) - if f'release/{version.get("major")}.{version.get("minor")}' != sys.argv[1]: + if f'release/{version.get(\"major\")}.{version.get(\"minor\")}' != sys.argv[1]: raise ValueError('Branch name mismatch') """ > /tmp/check.py python /tmp/check.py "${{ steps.extract_branch.outputs.branch }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9da7e18e9..f718c9f78 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,13 +32,13 @@ jobs: run: | echo """ import json, sys, os - with open(f"src{os.sep}taipy{os.sep}gui{os.sep}version.json") as version_file: + with open(f\"src{os.sep}taipy{os.sep}gui{os.sep}version.json\") as version_file: version_o = json.load(version_file) - version = f'{version_o.get("major")}.{version_o.get("minor")}.{version_o.get("patch")}' - if vext := version_o.get("ext"): + version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}' + if vext := version_o.get(\"ext\"): version = f'{version}.{vext}' if version != sys.argv[1]: - raise ValueError(f"Invalid version {version} / {sys.argv[1]}") + raise ValueError(f\"Invalid version {version} / {sys.argv[1]}\") """ > /tmp/check1.py python /tmp/check1.py "${{ github.event.inputs.version }}" @@ -46,9 +46,9 @@ jobs: run: | echo """ import json, sys, os - with open(f"src{os.sep}taipy{os.sep}gui{os.sep}version.json") as version_file: + with open(f\"src{os.sep}taipy{os.sep}gui{os.sep}version.json\") as version_file: version = json.load(version_file) - if f'release/{version.get("major")}.{version.get("minor")}' != sys.argv[1]: + if f'release/{version.get(\"major\")}.{version.get(\"minor\")}' != sys.argv[1]: raise ValueError('Branch name mismatch') """ > /tmp/check.py python /tmp/check.py "${{ steps.extract_branch.outputs.branch }}"