From 3bc1b7dee2441c3c43aafd82903f3eddcace3646 Mon Sep 17 00:00:00 2001 From: gdlcf88 Date: Thu, 16 Jul 2020 19:22:02 +0800 Subject: [PATCH] Fix publish.yml --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4c39b009..e8c3668c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,11 +16,11 @@ jobs: with: path: ./common.props - - name: get version - id: getVersion + - name: get version line + id: getVersionLine uses: AsasInnab/regex-action@v1 with: - regex_pattern: '^\s*(.*)<\/Version>\s*$' + regex_pattern: '(?<=>)[^<>]+(?=)' regex_flags: 'gim' search_string: '${{ steps.commonProps.outputs.content }}'