From 0af8a59e710ca5c003f5d329ff606dd74de5258d Mon Sep 17 00:00:00 2001 From: Wen Wei Tseng Date: Mon, 29 Jan 2024 22:17:07 +0800 Subject: [PATCH] toml --- .github/read_toml.py | 3 --- .github/workflows/ci.yml | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 .github/read_toml.py diff --git a/.github/read_toml.py b/.github/read_toml.py deleted file mode 100644 index e02832c..0000000 --- a/.github/read_toml.py +++ /dev/null @@ -1,3 +0,0 @@ -import tomllib -with open("Manifest.toml", "rb") as f: - print(tomllib.load(f)["julia_version"]) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 500b374..0f042c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,8 +35,11 @@ jobs: - name: Install python packages run: pip install -r requirements.txt - name: Read Julia version + uses: SebRollen/toml-action@v1.2.0 id: read_toml - run: echo "value=$(python .github/read_toml.py)" >> "$GITHUB_OUTPUT" + with: + file: 'Manifest.toml' + field: 'julia_version' - name: Setup Julia uses: julia-actions/setup-julia@v1 with: