Skip to content

Commit b1967a2

Browse files
refactor: use tee instead of duplicating echo
1 parent c3d8578 commit b1967a2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/reusable-compute-staging-version.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ jobs:
2525
COMMIT_SHA="${{ github.sha }}"
2626
CURRENT_VERSION=$(npm pkg get version | tr -d '"')
2727
STAGING_VERSION="${CURRENT_VERSION}-${BRANCH}-${COMMIT_SHA::7}"
28-
echo "VERSION=${STAGING_VERSION}" >> $GITHUB_OUTPUT
29-
echo "DIST_TAG=${BRANCH}" >> $GITHUB_OUTPUT
30-
echo "VERSION=${STAGING_VERSION}"
31-
echo "DIST_TAG=${BRANCH}"
28+
echo "VERSION=${STAGING_VERSION}" | tee -a $GITHUB_OUTPUT
29+
echo "DIST_TAG=${BRANCH}" | tee -a $GITHUB_OUTPUT
3230
outputs:
3331
version: ${{ steps.set-publish-version.outputs.VERSION }}
3432
dist-tag: ${{ steps.set-publish-version.outputs.DIST_TAG }}

0 commit comments

Comments
 (0)