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 }}'