|
26 | 26 | # return false; |
27 | 27 | # } |
28 | 28 | # return issue.data.body.includes('Hey ontobot'); |
29 | | - |
| 29 | + |
30 | 30 | # build: |
31 | 31 | # needs: check |
32 | 32 | # if: needs.check.outputs.phraseExists == 'true' |
|
41 | 41 | # - name: Checkout main branch |
42 | 42 | # uses: actions/checkout@v3 |
43 | 43 |
|
44 | | -# - name: Set up Python ${{ matrix.python-version }} |
45 | | -# uses: actions/setup-python@v3 |
| 44 | +# - name: Return issue number |
| 45 | +# id: gh-script-issue |
| 46 | +# uses: actions/github-script@v6 |
46 | 47 | # with: |
47 | | -# python-version: ${{ matrix.python-version }} |
48 | | - |
49 | | -# - name: Return issue number and repository name |
50 | | -# id: gh-script |
| 48 | +# # github-token: ${{ secrets.GH_TOKEN }} |
| 49 | +# script: | |
| 50 | +# const issue_number = context.issue.number |
| 51 | +# const repo = context.repo.owner+"/"+context.repo.repo |
| 52 | +# return issue_number |
| 53 | + |
| 54 | +# - name: Return repository name |
| 55 | +# id: gh-script-repo |
51 | 56 | # uses: actions/github-script@v6 |
52 | 57 | # with: |
| 58 | +# # github-token: ${{ secrets.GH_TOKEN }} |
53 | 59 | # script: | |
54 | | -# const issue_number = context.issue.number; |
55 | | -# const repo = context.repo.owner + "/" + context.repo.repo; |
56 | | -# return { issue_number, repo }; |
| 60 | +# const repo = context.repo.owner+"/"+context.repo.repo |
| 61 | +# return repo |
57 | 62 |
|
58 | 63 | # - name: Set branch name |
59 | 64 | # id: vars |
60 | 65 | # run: | |
61 | | -# echo "resource=src/ontology/cl-edit.owl" >> $GITHUB_ENV |
62 | | -# echo "branch-name=kgcl_automation_"${{ steps.gh-script.outputs.issue_number }} >> $GITHUB_ENV |
| 66 | +# echo "resource=src/envo/envo-edit.owl" >> $GITHUB_ENV |
| 67 | +# echo "branch-name=kgcl_automation_"${{ steps.gh-script-issue.outputs.result }} >> $GITHUB_ENV |
63 | 68 |
|
64 | 69 | # - name: Get jar & enable plugin. |
65 | 70 | # run: | |
66 | 71 | # mkdir -p robot-plugins |
67 | 72 | # 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 |
68 | 73 | # echo "ROBOT_PLUGINS_DIRECTORY=$(pwd)/robot-plugins/" >> "$GITHUB_ENV" |
69 | | - |
| 74 | + |
70 | 75 | # - name: Install dependencies |
71 | 76 | # run: | |
72 | 77 | # pip install ontobot-change-agent |
|
75 | 80 | # id: ochange |
76 | 81 | # run: | |
77 | 82 | # ochange process-issue ${{ env.resource }} \ |
78 | | -# -r ${{ steps.gh-script.outputs.repo }} \ |
79 | | -# -n ${{ steps.gh-script.outputs.issue_number }} \ |
| 83 | +# -r ${{ steps.gh-script-repo.outputs.result }} \ |
| 84 | +# -n ${{ steps.gh-script-issue.outputs.result }} \ |
80 | 85 | # -g ${{ secrets.GH_TOKEN }} |
81 | | -## ! OR using standalone JAR file. |
82 | | -## ! ochange process-issue ${{ env.resource }} \ |
83 | | -## ! -r ${{ steps.gh-script.outputs.repo }} \ |
84 | | -## ! -n ${{ steps.gh-script.outputs.issue_number }} \ |
85 | | -## ! -g ${{ secrets.GH_TOKEN }} \ |
86 | | -## ! -j kgcl-robot.jar |
| 86 | +# # ! OR using standalone JAR file. |
| 87 | +# # ! ochange process-issue ${{ env.resource }} \ |
| 88 | +# # ! -r ${{ steps.gh-script-repo.outputs.result }} \ |
| 89 | +# # ! -n ${{ steps.gh-script-issue.outputs.result }} \ |
| 90 | +# # ! -g ${{ secrets.GH_TOKEN }} \ |
| 91 | +# # ! -j kgcl-robot.jar |
| 92 | + |
87 | 93 | # - name: Clean-up |
88 | 94 | # run: rm -rf robot-plugins |
89 | 95 |
|
90 | 96 | # - name: Create Pull Request |
91 | 97 | # uses: peter-evans/create-pull-request@v5 |
92 | 98 | # if: ${{ env.PR_TITLE}} |
93 | 99 | # with: |
| 100 | +# token: ${{ secrets.GH_TOKEN }} |
94 | 101 | # branch-suffix: short-commit-hash |
95 | 102 | # labels: Automated |
96 | 103 | # author: ${{ env.ISSUE_CREATOR }} <${{ env.ISSUE_CREATOR }}@users.noreply.github.com> |
|
0 commit comments