From 7fd573c4e1a36e7c51fd29d755c149b0d64dfda8 Mon Sep 17 00:00:00 2001 From: Joris Conijn Date: Mon, 6 Mar 2023 10:43:43 +0100 Subject: [PATCH] fix: use proper project name --- .github/workflows/ci.yml | 3 ++- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 609f160..cdb6e84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,8 @@ jobs: - name: Prepare variables id: vars run: | - echo "version=$(awk '/version/{print $NF}' pyproject.toml | sed 's/\"//g')" >> $GITHUB_OUTPUT + echo "version=$(awk '/^version/{print $NF}' pyproject.toml | sed 's/\"//g')" >> $GITHUB_OUTPUT + echo "project=$(awk '/^name/{print $NF}' pyproject.toml | sed 's/\"//g' | sed 's/-/_/g')" >> $GITHUB_OUTPUT - name: Install dependencies run: make install - name: Run check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca707e7..51c0043 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,8 +26,8 @@ jobs: - name: Prepare variables id: vars run: | - echo "version=$(awk '/version/{print $NF}' pyproject.toml | sed 's/\"//g')" >> $GITHUB_OUTPUT - echo "project=$(awk '/name =/{print $NF}' pyproject.toml | sed 's/\"//g')" >> $GITHUB_OUTPUT + echo "version=$(awk '/^version/{print $NF}' pyproject.toml | sed 's/\"//g')" >> $GITHUB_OUTPUT + echo "project=$(awk '/^name/{print $NF}' pyproject.toml | sed 's/\"//g' | sed 's/-/_/g')" >> $GITHUB_OUTPUT - name: Install dependencies run: make install - name: Run check