From 1658f074839ed7825754d890e279fdf68f9fc602 Mon Sep 17 00:00:00 2001 From: Simon Diesenreiter Date: Wed, 27 Nov 2024 22:33:49 +0100 Subject: [PATCH] fix bug --- .gitea/workflows/release.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 9a0340c..ba3985b 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -35,18 +35,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 + - name: Set up dotnet + uses: actions/setup-dotnet@v4 with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine + dotnet-version: '9.0.X' - name: Check version match run: | REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_'') - if [ "$(cat $REPOSITORY_NAME/$REPOSITORY_NAME/VERSION)" = "${GITHUB_REF_NAME:1}" ] ; then + if [ "$(cat DotnetTestLib/VERSION)" = "${GITHUB_REF_NAME:1}" ] ; then echo "Version matches successfully!" else echo "Version must match!"