There was an error while loading. Please reload this page.
1 parent def1c06 commit 3f4c37dCopy full SHA for 3f4c37d
1 file changed
.github/workflows/prerelease.yml
@@ -15,16 +15,16 @@ jobs:
15
runs-on: "ubuntu-latest"
16
17
steps:
18
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v4
19
20
- name: Determine prerelease version
21
run: |
22
- BASE_VERSION=$(grep -oPm1 "(?<=<Version>)[^<]+" src/Directory.Build.props)
+ BASE_VERSION=$(awk -F'[<>]' '/<Version>/{print $3; exit}' src/Directory.Build.props)
23
COMMIT_SHA=$(git rev-parse --short HEAD)
24
echo "PRERELEASE_VERSION=${BASE_VERSION}-${COMMIT_SHA}" >> $GITHUB_ENV
25
26
- name: Setup .NET
27
- uses: actions/setup-dotnet@v1
+ uses: actions/setup-dotnet@v4
28
with:
29
dotnet-version: "10.0.x"
30
0 commit comments