From 8a5b61323ab95b269b4281440e1216bbc846cf25 Mon Sep 17 00:00:00 2001 From: Joshua Paul Woods Date: Thu, 25 Jan 2024 11:56:10 +1100 Subject: [PATCH] adjust workflow --- .github/workflows/deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 14345e0..3a5c6df 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,12 +22,11 @@ env: jobs: verify_manifest: runs-on: ubuntu-latest - if: (github.event_name == 'release') || (github.event_name == 'workflow_run' && github.event.workflow == 'build' && github.event.workflow_run.conclusion == 'success') steps: - uses: actions/checkout@v3 - name: Check that version matches run: | - version=$(grep -Po "AssemblyVersion\(\"\K([0-9]+\.[0-9]+\.[0-9]+)" ${{env.name}}/Properties/AssemblyInfo.cs) + version=$(grep -Po "([0-9]+\.[0-9]+\.[0-9]+.[0-9]+)<\/Version>" ${{env.name}}/${{env.name}}.csproj | sed 's/<\/\?Version>//g' ) versionfrommanifest="$(jq -r '.version_number' $(find ./${{env.name}}/Package -name ${{env.jsonf}}))" [ -z "$version" ] && echo "::error::version is empty!" && exit 1 [ -z "$versionfrommanifest" ] && echo "::error::versionfrommanifest is empty!" && exit 1