Skip to content

Commit

Permalink
enable
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Oct 9, 2023
1 parent 24989a2 commit 847be9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: AUTOGPT
on:
#workflow_dispatch : #only run when requested
# comment out the next line
#issue_comment:
# types: [created]
workflow_dispatch : #only run when requested
# comment out the next 2 lines to stop processing new inputs
issue_comment:
types: [created]

jobs:
printEnv:
if: ${{ startsWith( github.event.comment.body, '/agent-action')}}
permissions: write-all
# repository:write
name: Print env
Expand All @@ -19,21 +20,17 @@ jobs:
GITHUB_USER: ${{ github.event.comment.user.login }}
GITHUB_REPO: ${{ github.repository }}
run: |
echo TEST ${{ contains(fromJson('["nektos/act", "jmikedupont2", "Mysticmarks"]'), github.actor ) }}
echo USER "$GITHUB_USER"
echo USER "$GITHUB_REPO"
echo ACTOR "${{ github.actor }}"
echo TRIGGER "${{ github.triggering_actor }}"
echo LOGIN "${{ github.event.comment.user.login }}"
runJob:
if: ${{ startsWith( github.event.comment.body, '/agent-action')}}
permissions: write-all
name: Runevent
runs-on: ubuntu-latest
#if: ${{ contains(fromJson('[ "nektos/act", "jmikedupont2", "Mysticmarks", "amonkhepri" ]'), github.actor ) }}
#if: contains(github.event.comment.html_url, '/pull/') # check if the comments come from pull request, exclude those from issue.
#if: contains(github.event.comment.body, '/support') # check the
if: startsWith(${{ github.event.comment.body }}, '/agent-action')
steps:
- name: run gh workflow
env:
Expand All @@ -57,7 +54,7 @@ jobs:
# call in our own repo
#echo $GITHUB_CONTEXT |
gh workflow run \
echo skip for now gh workflow run \
-f ai_name=github_seer \
-f ai_role=githubactionexpert \
-f ai_goal_1="write github actions" \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
- name: Dump GitHub context
run: |
echo COMMENT_BODY ${{ github.event.comment.body }}
echo TEST2 ${{ startsWith( github.event.comment.body, '/agent-action')}}
echo TEST2

0 comments on commit 847be9a

Please sign in to comment.