Skip to content

Commit

Permalink
fix: use sed instead of grep -P
Browse files Browse the repository at this point in the history
  • Loading branch information
RobPasMue committed Dec 2, 2024
1 parent 5140cfa commit 891324c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ runs:
shell: bash
run: |
if [ "${{ inputs.mesa3d-release }}" == "latest" ]; then
export MESA3D_VERSION=$(curl -s https://api.github.com/repos/pal1000/mesa-dist-win/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
export MESA3D_VERSION=$(curl -s https://api.github.com/repos/pal1000/mesa-dist-win/releases/latest | grep -o '"tag_name": ".*"' | sed 's/"tag_name": "\(.*\)"/\1/')
else
export MESA3D_VERSION=${{ inputs.mesa3d-release }}
fi
Expand Down

0 comments on commit 891324c

Please sign in to comment.