We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e905f70 commit 7d07514Copy full SHA for 7d07514
1 file changed
.github/actions/determine-version/action.yml
@@ -30,6 +30,6 @@ runs:
30
- name: 'Capture version in branch name'
31
shell: bash
32
run: |
33
- echo "branch-name=${{ inputs.branch-name }}" >> $GITHUB_ENV
34
- echo "version-format=${{ inputs.version-format }}" >> $GITHUB_ENV
35
- echo "version=$(${{ inputs.branch-name }} | sed -E 's/\([0-9]+\)\.\([0-9]+\).*/\1.\2/\')" >> $GITHUB_ENV
+ echo "${{ inputs.branch-name }}"
+ echo "${{ inputs.version-format }}"
+ echo ${{ inputs.branch-name }} | grep -Po '${{ inputs.version-format }}'
0 commit comments