From c5bee1a86aa7d8168ad0267c5120e3a735dc1ab5 Mon Sep 17 00:00:00 2001 From: Harshad Hegde Date: Thu, 2 Nov 2023 11:40:15 -0500 Subject: [PATCH] update workflow to use kgcl-java as a robot plugin --- .github/workflows/ontobot.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ontobot.yml b/.github/workflows/ontobot.yml index 88a2e6de0..b4a9e9324 100644 --- a/.github/workflows/ontobot.yml +++ b/.github/workflows/ontobot.yml @@ -48,12 +48,15 @@ jobs: echo "resource=src/ontology/cl-edit.owl" >> $GITHUB_ENV echo "branch-name=kgcl_automation_"${{ steps.gh-script-issue.outputs.result }} >> $GITHUB_ENV - - name: Get jar & create alias command. - run: wget https://github.com/gouttegd/kgcl-java/releases/download/kgcl-0.2.0/kgcl-robot-standalone-0.2.0.jar -O kgcl-robot.jar + - name: Get jar & enable plugin. + run: | + mkdir -p robot-plugins + wget https://github.com/gouttegd/kgcl-java/releases/download/kgcl-0.2.0/kgcl-robot-plugin-0.2.0.jar -O robot-plugins/kgcl.jar + echo "ROBOT_PLUGINS_DIRECTORY=$(pwd)/robot-plugins/" >> "$GITHUB_ENV" - name: Install dependencies run: | - pip install ontobot-change-agent + pip install git+https://github.com/hrshdhgd/ontobot-change-agent.git - name: Run ochange id: ochange @@ -61,11 +64,10 @@ jobs: ochange process-issue ${{ env.resource }} \ -r ${{ steps.gh-script-repo.outputs.result }} \ -n ${{ steps.gh-script-issue.outputs.result }} \ - -g ${{ secrets.GH_TOKEN }} \ - -j kgcl-robot.jar + -g ${{ secrets.GH_TOKEN }} - name: Clean-up - run: rm -f kgcl-robot.jar + run: rm -rf robot-plugins - name: Create Pull Request uses: peter-evans/create-pull-request@v5