Skip to content

Commit 27e4400

Browse files
authored
Update release-pipeline.yaml
1 parent f484573 commit 27e4400

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release-pipeline.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
defaults:
1212
run:
13-
working-directory: Sapling # Set the working directory for all commands
13+
working-directory: Sapling
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v2
@@ -22,10 +22,11 @@ jobs:
2222

2323
# Get the version from the .csproj file
2424
- name: Get .NET application version
25+
working-directory: Sapling
2526
id: get_version
2627
run: |
27-
dotnet build --configuration Release
28-
VERSION=$(dotnet run --configuration Release -- --version | tr -d '\r\n')
28+
dotnet run --no-build -- --version
29+
VERSION=$(dotnet run --no-build -- --version | tr -d '\r\n')
2930
echo "Application version: $VERSION"
3031
echo "::set-output name=version::$VERSION"
3132

0 commit comments

Comments
 (0)