UpdateMembers #1244
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: 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 |