Skip to content

Contributors

Contributors #174

Workflow file for this run

name: Contributors
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch: ~
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
storage:
name: Fetch contributors
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# gcloud does not work with Python 3.10 because collections.Mappings was removed in Python 3.10.
- uses: actions/setup-python@v4
with:
python-version: 3.9.15
- name: Auth gcloud
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.BUCKET_CREDS }}
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
- name: Store contributors
run: |
cd pwa/
npm install
npm run contributors
gsutils -q rsync ./data/contributors.json gs://api-platform-website-v3/storage