Skip to content

Commit 62e9306

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

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -638,9 +638,18 @@ 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/addonfactory-ucc-generator-action@v3.0
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+
echo "OUTPUT=output/$(ls output/)" >> $GITHUB_OUTPUT
644653
- name: Slim Package
645654
id: slim
646655
run: |

0 commit comments

Comments
 (0)