UpdateMembers #1099
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@v2 | |
- name: Set Up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Enable Pip Cache | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/.github/scripts/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-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 | |
- 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 |