Skip to content

Commit f0e1172

Browse files
committed
zcxvzc\
1 parent 61d9f9c commit f0e1172

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/actions/determine-version/action.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,19 @@ runs:
2626
uses: actions/setup-dotnet@v4
2727
with:
2828
dotnet-version: ${{ inputs.dotnet_sdk_version }}
29+
30+
- name: 'what what'
31+
id: regex-match
32+
uses: actions-ecosystem/action-regex-match@v2
33+
with:
34+
text: ${{ inputs.branch-name }}
35+
regex: ${{ inputs.version-format }}
2936

3037
- name: 'Capture version in branch name'
3138
shell: bash
3239
run: |
3340
echo "${{ inputs.branch-name }}"
3441
echo "${{ inputs.version-format }}"
35-
echo "$(${{ inputs.branch-name }} | grep -Po '${{ inputs.version-format }}')"
42+
echo "${{ steps.regex-match.outputs.match }}"
43+
echo "${{ steps.regex-match.outputs.group1 }}"
44+
echo "${{ steps.regex-match.outputs.group2 }}"

0 commit comments

Comments
 (0)