Explorar o código

Merge pull request #7 from darrenhinde/workflow-test

PR agent Owner
Darren Hinde hai 11 meses
pai
achega
6b15d0a32e
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      .github/workflows/opencode.yml

+ 4 - 2
.github/workflows/opencode.yml

@@ -7,8 +7,10 @@ on:
 jobs:
 jobs:
   opencode:
   opencode:
     if: |
     if: |
-      contains(github.event.comment.body, '/oc') ||
-      contains(github.event.comment.body, '/opencode')
+      (contains(github.event.comment.body, '/oc') ||
+       contains(github.event.comment.body, '/opencode')) &&
+      (github.event.comment.author_association == 'OWNER' ||
+       github.event.comment.author_association == 'MEMBER')
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     permissions:
     permissions:
       id-token: write
       id-token: write