Add team for NASA Codeflare cluster access (#184) #82
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Apply Organization Membership | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- 'main' | |
paths: | |
- "config/opendatahub-io/org.yaml" | |
jobs: | |
peribolos: | |
runs-on: ubuntu-latest | |
container: | |
image: gcr.io/k8s-prow/peribolos | |
steps: | |
- name: Generate github-app token | |
id: app-token | |
uses: getsentry/action-github-app-token@v2 | |
with: | |
app_id: ${{ secrets.DEVOPS_APP_ID }} | |
private_key: ${{ secrets.DEVOPS_APP_PRIVATE_KEY }} | |
- uses: actions/checkout@v3 | |
- name: Apply ODH organization membership | |
run: | | |
echo ${{ steps.app-token.outputs.token }} > /.github_token.txt | |
peribolos --github-token-path /.github_token.txt --config-path "config/opendatahub-io/org.yaml" --fix-org --fix-org-members --fix-teams --fix-team-members --fix-team-repos --fix-repos --confirm |