Skip to content

Commit d8aee13

Browse files
committed
refactor: directly build add-on
1 parent b10b54c commit d8aee13

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/reusable-build-test-release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -638,9 +638,19 @@ jobs:
638638
cp -f THIRDPARTY package/THIRDPARTY || echo "THIRDPARTY file not found (allowed for PR and schedule)"
639639
- name: Build Package
640640
id: uccgen
641-
uses: splunk/[email protected]
642-
with:
643-
version: ${{ steps.BuildVersion.outputs.VERSION }}
641+
run: |
642+
ucc-gen --ta-version ${{ steps.BuildVersion.outputs.VERSION }}
643+
if [ -f package.json ]
644+
then
645+
yarn
646+
if [ ! -z ${{ steps.BuildVersion.outputs.VERSION }} ]
647+
then
648+
yarn version --new-version ${{ steps.BuildVersion.outputs.VERSION }} --no-git-tag-version
649+
fi
650+
yarn run build
651+
fi
652+
OUTPUT=output/$(ls output/)
653+
echo "result=$(echo $OUTPUT)" >> $GITHUB_OUTPUT
644654
- name: Slim Package
645655
id: slim
646656
run: |

0 commit comments

Comments
 (0)