Skip to content

Commit

Permalink
Merge pull request #3225 from obophenotype/update-ontobot-workflow
Browse files Browse the repository at this point in the history
Use a dedicated token for the ontobot workflow.
  • Loading branch information
gouttegd authored Feb 20, 2024
2 parents f007459 + 68c9827 commit b3e77e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/auto-pr-ontobot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
id: gh-script-issue
uses: actions/github-script@v6
with:
# github-token: ${{ secrets.GH_TOKEN }}
github-token: ${{ secrets.ONTOBOT_TOKEN }}
script: |
const issue_number = context.issue.number
const repo = context.repo.owner+"/"+context.repo.repo
Expand All @@ -57,7 +57,7 @@ jobs:
id: gh-script-repo
uses: actions/github-script@v6
with:
# github-token: ${{ secrets.GH_TOKEN }}
github-token: ${{ secrets.ONTOBOT_TOKEN }}
script: |
const repo = context.repo.owner+"/"+context.repo.repo
return repo
Expand All @@ -78,7 +78,7 @@ jobs:
ochange process-issue ${{ env.resource }} \
-r ${{ steps.gh-script-repo.outputs.result }} \
-n ${{ steps.gh-script-issue.outputs.result }} \
-g ${{ secrets.GH_TOKEN }} \
-g ${{ secrets.ONTOBOT_TOKEN }} \
-p UBERON
- name: Create Pull Request
Expand All @@ -93,4 +93,4 @@ jobs:
committer: ${{ env.ISSUE_CREATOR }} <${{ env.ISSUE_CREATOR }}@users.noreply.github.com>
base: ${{ github.head_ref }}
branch: ${{ env.branch-name }}
# token: ${{ secrets.GH_TOKEN }}
token: ${{ secrets.ONTOBOT_TOKEN }}

0 comments on commit b3e77e4

Please sign in to comment.