@@ -11,7 +11,7 @@ permissions:
1111jobs :
1212 build :
1313 name : Build
14- if : ${{ github.event.issue.pull_request && ( contains(github.event.comment.body, 'please do this')) }}
14+ if : ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'please do this') && contains(fromJson('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) }}
1515 timeout-minutes : 80
1616 runs-on : ubuntu-latest
1717
@@ -21,10 +21,36 @@ jobs:
2121 with :
2222 token : ${{ secrets.GITHUB_TOKEN }}
2323
24- - name : Configure git to use https
25- run : git config --global hub.protocol https
26-
2724 - name : Checkout the branch from the PR that triggered the job
2825 run : hub pr checkout ${{ github.event.issue.number }}
2926 env :
3027 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ ALPHA : ${{ secrets.ALPHA }}
29+ - name : Checkout the branch from the PR that triggered the job
30+ run : echo "Hello ${{ secrets.FOO }}"
31+
32+ # - name: Trigger Kubernetes Tests
33+ # uses: aktechlabs/nebari/.github/workflows/kubernetes_test.yaml@main
34+ # with:
35+ # pr_number: ${{ github.event.issue.number }}
36+
37+ kubernetes-tests :
38+ name : Contributor
39+ if : ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'please do this') && contains(fromJson('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)}}
40+ uses : aktechlabs/nebari/.github/workflows/kubernetes_test.yaml@release/2022.11.1
41+ with :
42+ pr_number : ${{ github.event.issue.number }}
43+
44+ infracost-tests :
45+ name : Contributor
46+ if : ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'please do this') && contains(fromJson('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)}}
47+ uses : aktechlabs/nebari/.github/workflows/infracost.yml@release/2022.11.1
48+ with :
49+ pr_number : ${{ github.event.issue.number }}
50+
51+ provider-tests :
52+ name : Contributor
53+ if : ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'please do this') && contains(fromJson('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)}}
54+ uses : aktechlabs/nebari/.github/workflows/test-provider.yaml@release/2022.11.1
55+ with :
56+ pr_number : ${{ github.event.issue.number }}
0 commit comments