Skip to content

Commit d1b5d4d

Browse files
committed
use github output
fix cmd windows test
1 parent 1200fd0 commit d1b5d4d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,10 +1613,16 @@ jobs:
16131613
16141614
- name: Binary Key
16151615
id: binary-key
1616-
run: echo "::set-output name=binary-key::profiling-node-binaries-${{ github.sha }}-${{ matrix.node }}-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.container }} | sed 's/:/-/g'"
1616+
if: contains(matrix.container, ':')
1617+
run: |
1618+
key="profiling-node-binaries-${GITHUB_SHA}-${{ matrix.node }}-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.container }}"
1619+
if [[ "$key" == *:* ]]; then
1620+
key=$(echo "$key" | sed 's/:/-/g')
1621+
fi
1622+
echo "key=$key" >> $GITHUB_ENV
16171623
16181624
- name: Archive Binary
16191625
uses: actions/upload-artifact@v4
16201626
with:
1621-
name: ${{ steps.binary-key.outputs.binary-key }}
1627+
name: ${{ steps.binary-key.outputs.key }}
16221628
path: ${{ github.workspace }}/packages/profiling-node/lib/*.node

0 commit comments

Comments
 (0)