Skip to content

Commit 52e20a3

Browse files
committed
Update contributor.yaml
1 parent a6469c4 commit 52e20a3

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/contributor.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
jobs:
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,15 @@ 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 }}

.github/workflows/kubernetes_test.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ on:
2424
- "nebari/**"
2525
- "setup.cfg"
2626
- "pyproject.yoml"
27+
workflow_call:
28+
inputs:
29+
pr_number:
30+
required: true
31+
type: str
2732

2833
jobs:
2934
test-kubernetes:
@@ -33,6 +38,11 @@ jobs:
3338
run:
3439
shell: bash -l {0}
3540
steps:
41+
42+
- name: Checkout the branch from the PR that triggered the job
43+
if: ${{ github.event_name == workflow_call }}
44+
run: hub pr checkout pr ${{ inputs.pr_number }}
45+
3646
- name: "Set NEBARI_IMAGE_TAG=main"
3747
run: |
3848
echo "NEBARI_IMAGE_TAG=main" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)