Split members.json into separate files #4
Workflow file for this run
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: Ecosystem | Recompile members.json | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- 'ecosystem/resources/members/*.toml' | ||
workflow_dispatch: | ||
jobs: | ||
runs-on: ubuntu-latest | ||
env: | ||
tox_env: "py39" | ||
python-version: "3.9" | ||
concurrency: | ||
group: ci-ecosystem-recompile | ||
cancel-in-progress: true | ||
steps: | ||
# setup deps | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ env.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ env.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install -r requirements-dev.txt | ||
- name: Pull modif | ||
run: git pull | ||
- name: Recompile and push | ||
run: | | ||
python -m manager recompile | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
if [[ $(git status -s) != "" ]]; then | ||
git add ecosystem/resources/members.json | ||
git commit -m "Recompile members.json" | ||
git push | ||
fi | ||