Skip to content

Commit 009a951

Browse files
committed
.
1 parent ccdd383 commit 009a951

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/linux-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ jobs:
5353
- name: Locate nupkg
5454
id: pkg
5555
run: |
56-
pkg=$(find . -name "Rubjerg.Graphviz.*.nupkg" | head -1)
57-
echo "package=$pkg" >> "$GITHUB_OUTPUT"
56+
just locate-nupkg "$GITHUB_OUTPUT"
5857
5958
- uses: actions/upload-artifact@v4
6059
with:

.github/workflows/win-build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,10 @@ jobs:
5151
shell: bash
5252
run: just test Rubjerg.Graphviz.TransitiveTest/Rubjerg.Graphviz.TransitiveTest.csproj
5353

54-
5554
- name: Locate nupkg
5655
id: pkg
5756
run: |
58-
pkg=$(find . -name "Rubjerg.Graphviz.*.nupkg" | head -1)
59-
echo "package=$pkg" >> "$GITHUB_OUTPUT"
57+
just locate-nupkg "$GITHUB_OUTPUT"
6058
6159
- uses: actions/upload-artifact@v4
6260
with:

justfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
set shell := ["sh", "-cu"]
12
is-windows := `uname -s | grep -qi 'mingw\|msys' && echo true || echo false`
23

34
# Full pipeline
@@ -49,6 +50,9 @@ test-all: build-tests
4950
just test Rubjerg.Graphviz.Test/Rubjerg.Graphviz.Test.csproj
5051
just test Rubjerg.Graphviz.TransitiveTest/Rubjerg.Graphviz.TransitiveTest.csproj
5152

53+
locate-nupkg GITHUB_OUTPUT: test-all
54+
pkg=$(find . -name "Rubjerg.Graphviz.*.nupkg" | head -1)
55+
echo "package=$pkg" >> {{GITHUB_OUTPUT}}
5256

5357
# Check for CRLF line endings (only reports changes)
5458
check-line-endings:

0 commit comments

Comments
 (0)