Process GPT Ratings #33
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: Process GPT Ratings | |
on: | |
issues: | |
types: [opened, edited] | |
jobs: | |
update-ratings: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.x | |
- name: Install 'github' Module | |
run: pip install PyGitHub | |
- name: Process Rating Issues | |
run: python .github/scripts/process_ratings.py | |
env: | |
MODIFY_TOKEN: ${{ secrets.MODIFY_TOKEN }} | |
- name: Commit and Push Changes | |
run: | | |
git config --global user.name 'robbiebusinessacc' | |
git config --global user.email '[email protected]' | |
git add README.md | |
git diff --staged --quiet || (git commit -m "Update GPT ratings" && git push) |