Skip to content

fix ci && rename contrib.md #13

fix ci && rename contrib.md

fix ci && rename contrib.md #13

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Awesome-Game-Analysis
on:
push:
paths:
- 'data/games.toml'
pull_request:
branches:
- main
types:
- opened
- synchronize
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11.4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r scripts/requirements.txt
- name: Execute Python scripts
id: execute-scripts
run: python scripts/toml_markdown.py -i data/games.toml -t toml --readme
- name: Commit changes
run: |
if [ "${{ steps.execute-scripts.outcome }}" == "success" ]; then
commit_message="${{ steps.get-commit-message.outputs.commit-message }}"
git config --global user.name "K1ngst0m"
git config --global user.email "[email protected]"
git add .
git commit -m "$commit_message"
git push
else
echo "Execution failed. Exiting."
exit 1
fi