From 69f7d76fd5db2066c8f4a182623a78ba5254e91f Mon Sep 17 00:00:00 2001 From: kseen Date: Tue, 6 Aug 2024 21:10:54 +0300 Subject: [PATCH] Refactor on-commit workflow to include running runall.py and committing results --- .github/workflows/on-commit.yml | 36 ++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/.github/workflows/on-commit.yml b/.github/workflows/on-commit.yml index 4123e1a..1a6ba20 100644 --- a/.github/workflows/on-commit.yml +++ b/.github/workflows/on-commit.yml @@ -1,20 +1,28 @@ +# run runall.py on commit and commit result to the repo name: On Commit on: push: branches: - main jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: "Set up Python 3.8" - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: "Install dependencies" - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: "Run tests" - run: python ./src/runall.py \ No newline at end of file + run: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: "Set up Python" + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: "Install dependencies" + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: "Run all" + run: python ./src/runall.py + - name: "Commit results" + run: | + git config --global user.email "" + git config --global user.name "GitHub Actions" + git add . + git commit -m "Run all" + git push \ No newline at end of file