Skip to content

Commit 3f4c37d

Browse files
authored
chore: bump checkout/setup-dotnet to v4, replace grep -P with awk
1 parent def1c06 commit 3f4c37d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/prerelease.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ jobs:
1515
runs-on: "ubuntu-latest"
1616

1717
steps:
18-
- uses: actions/checkout@v1
18+
- uses: actions/checkout@v4
1919

2020
- name: Determine prerelease version
2121
run: |
22-
BASE_VERSION=$(grep -oPm1 "(?<=<Version>)[^<]+" src/Directory.Build.props)
22+
BASE_VERSION=$(awk -F'[<>]' '/<Version>/{print $3; exit}' src/Directory.Build.props)
2323
COMMIT_SHA=$(git rev-parse --short HEAD)
2424
echo "PRERELEASE_VERSION=${BASE_VERSION}-${COMMIT_SHA}" >> $GITHUB_ENV
2525
2626
- name: Setup .NET
27-
uses: actions/setup-dotnet@v1
27+
uses: actions/setup-dotnet@v4
2828
with:
2929
dotnet-version: "10.0.x"
3030

0 commit comments

Comments
 (0)