Skip to content

Commit 287cca4

Browse files
committed
Utvidet publish kommandoen rundt logging, inkludert loglevel
1 parent a8847bc commit 287cca4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/actions/publishArtifact/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
nodeToken:
55
description: "A Github PAT"
66
required: true
7+
devhub:
8+
description: "The devhub alias"
9+
required: true
710

811
runs:
912
using: composite
@@ -12,9 +15,12 @@ runs:
1215
shell: bash
1316
run: |
1417
if [ -d "artifacts" ] && [ -n "$(ls -A artifacts)" ]; then
15-
sfp publish --artifactdir artifacts --npm --scope @${{ github.repository_owner }} --gittag --pushgittag
18+
sfp publish --artifactdir artifacts --npm --scope @${SCOPE} --devhubalias ${DEVHUB_ALIAS} --loglevel ${SFP_LOG_LEVEL} --gittag --pushgittag --logsgroupsymbol ::group::,::endgroup::
1619
else
1720
echo "No artifacts to publish"
1821
fi
1922
env:
2023
NODE_AUTH_TOKEN: ${{ inputs.nodeToken }}
24+
DEVHUB_ALIAS: ${{ inputs.devhub }}
25+
SFP_LOG_LEVEL: ${{ vars.SFP_LOG_LEVEL }}
26+
SCOPE: ${{ github.repository_owner }}

0 commit comments

Comments
 (0)