Skip to content

Commit ffb380c

Browse files
committed
Update contributor.yaml
1 parent a6469c4 commit ffb380c

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

.github/workflows/contributor.yaml

Lines changed: 16 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,22 @@ 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: Kubernetes Tests
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 }}

.github/workflows/kubernetes_test.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,38 @@ on:
2424
- "nebari/**"
2525
- "setup.cfg"
2626
- "pyproject.yoml"
27+
workflow_call:
28+
inputs:
29+
pr_number:
30+
required: true
31+
type: string
2732

2833
jobs:
2934
test-kubernetes:
3035
name: "Kubernetes Tests"
31-
runs-on: "cirun-runner--${{ github.run_id }}"
36+
# runs-on: "cirun-runner--${{ github.run_id }}"
37+
runs-on: "ubuntu-latest"
3238
defaults:
3339
run:
3440
shell: bash -l {0}
3541
steps:
42+
3643
- name: "Set NEBARI_IMAGE_TAG=main"
3744
run: |
3845
echo "NEBARI_IMAGE_TAG=main" >> "$GITHUB_ENV"
3946
echo "GITHUB_BASE_REF: ${GITHUB_BASE_REF}"
4047
echo "GITHUB_HEAD_REF: ${GITHUB_HEAD_REF}"
4148
echo "GITHUB_REF: ${GITHUB_REF}"
49+
4250
- name: 'Checkout Infrastructure'
4351
uses: actions/checkout@main
52+
53+
- name: Checkout the branch from the PR that triggered the job
54+
if: ${{ github.event_name == 'issue_comment' }}
55+
run: hub pr checkout ${{ inputs.pr_number }}
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
4459
- name: Set up Python
4560
uses: conda-incubator/setup-miniconda@v2
4661
env:

0 commit comments

Comments
 (0)