Skip to content

Commit 831eea9

Browse files
authored
refactor: directly build add-on (#435)
### Description This PR brings the code from https://github.com/splunk/addonfactory-ucc-generator-action/tree/main and aims to deprecate this repository in favor of supporting less. ### Checklist - [ ] `README.md` has been updated or is not required - [ ] push trigger tests - [ ] manual release test - [ ] automated releases test - [x] pull request trigger tests - [ ] schedule trigger tests - [ ] workflow errors/warnings reviewed and addressed ### Testing done * splunk/splunk-add-on-for-okta-identity-cloud#373 - I downloaded the built add-on and it looks okay but I did not check every single file
1 parent b10b54c commit 831eea9

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/[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 [ -n ${{ 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)