Skip to content

Commit

Permalink
rolled back
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Nov 17, 2023
1 parent 030b880 commit 6f6fc22
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions .github/workflows/auto-pr-ontobot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,7 @@ on:
types: [ opened, edited ]

jobs:
check:
runs-on: ubuntu-latest
outputs:
phraseExists: ${{ steps.check-body.outputs.result }}
steps:
- name: Check if issue body contains 'Hey ontobot'
id: check-body
uses: actions/github-script@v6
with:
script: |
const issue = await github.rest.issues.get({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number
});
if (!issue.data.body) {
console.log('Issue body is empty or null');
return false;
}
return issue.data.body.toLowerCase().includes('hey ontobot');
build:
needs: check
if: needs.check.outputs.phraseExists == 'true'
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -78,7 +55,8 @@ 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.GH_TOKEN }} \
-p UBERON
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
Expand All @@ -92,4 +70,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.GH_TOKEN }}

0 comments on commit 6f6fc22

Please sign in to comment.