This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
Cleaning Data #134
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: Cleaning Data | |
on: | |
workflow_run: | |
workflows: ["Check POE Token"] | |
types: | |
- completed | |
jobs: | |
clean: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Run csv_to_txt.py script | |
run: | | |
cd poe_token_check | |
python csv_to_txt.py | |
- name: Commit changes | |
run: | | |
git config --global user.name 'GitHub Actions' | |
git config --global user.email '[email protected]' | |
git add . | |
git commit -m "Cleaned chat data" | |
git push |