-
Notifications
You must be signed in to change notification settings - Fork 32
47 lines (40 loc) · 1.23 KB
/
UpdateMembers.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: UpdateMembers
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # Nightly at midnight
jobs:
update-members:
runs-on: ubuntu-latest
if: github.repository == 'pangeo-data/pangeo-cloud-federation'
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: 'pip'
- name: Install Dependencies
run: |
python --version
pip install -r .github/scripts/requirements.txt
- name: Decrypt Gdrive Service Account Secret
env:
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }}
run: |
cd .github/scripts
./decrypt_secret.sh
# AWS Pangeo JupyterHub no longer operational
# - name: Update aws-uswest2 team
# env:
# PANGEOBOT_TOKEN: ${{ secrets.PANGEOBOT_TOKEN }}
# run: |
# cd .github/scripts
# ./update_membership.py aws-uswest2
- name: Update us-central1-b-gcp team
env:
PANGEOBOT_TOKEN: ${{ secrets.PANGEOBOT_TOKEN }}
run: |
cd .github/scripts
./update_membership.py us-central1-b-gcp