Skip to content

Commit

Permalink
Update contributor.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech committed Nov 24, 2022
1 parent a6469c4 commit 783d6c3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/contributor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
jobs:
build:
name: Build
if: ${{ github.event.issue.pull_request && (contains(github.event.comment.body, 'please do this')) }}
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'please do this') && contains(fromJson('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)}}
timeout-minutes: 80
runs-on: ubuntu-latest

Expand All @@ -21,10 +21,22 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Configure git to use https
run: git config --global hub.protocol https

- name: Checkout the branch from the PR that triggered the job
run: hub pr checkout ${{ github.event.issue.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ALPHA: ${{ secrets.ALPHA }}
- name: Checkout the branch from the PR that triggered the job
run: echo "Hello ${{ secrets.FOO }}"

# - name: Trigger Kubernetes Tests
# uses: aktechlabs/nebari/.github/workflows/kubernetes_test.yaml@main
# with:
# pr_number: ${{ github.event.issue.number }}

kubernetes-tests:
name: Kubernetes Tests
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'please do this') && contains(fromJson('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)}}
uses: aktechlabs/nebari/.github/workflows/kubernetes_test.yaml@release/2022.11.1
with:
pr_number: ${{ github.event.issue.number }}
16 changes: 15 additions & 1 deletion .github/workflows/kubernetes_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,29 @@ on:
- "nebari/**"
- "setup.cfg"
- "pyproject.yoml"
workflow_call:
inputs:
pr_number:
required: true
type: string

jobs:
test-kubernetes:
name: "Kubernetes Tests"
runs-on: "cirun-runner--${{ github.run_id }}"
# runs-on: "cirun-runner--${{ github.run_id }}"
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
steps:

- name: Event Name
run: echo "${{ github.event_name }}"

- name: Checkout the branch from the PR that triggered the job
if: ${{ github.event_name == 'workflow_call' }}
run: hub pr checkout pr ${{ inputs.pr_number }}

- name: "Set NEBARI_IMAGE_TAG=main"
run: |
echo "NEBARI_IMAGE_TAG=main" >> "$GITHUB_ENV"
Expand Down

0 comments on commit 783d6c3

Please sign in to comment.