Skip to content

Commit

Permalink
Merge pull request #38 from SENATOROVAI/main
Browse files Browse the repository at this point in the history
upd
  • Loading branch information
ruslansenatorov authored Nov 28, 2024
2 parents a5d5f7d + 1df34fe commit 712e34a
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 345 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/isort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ on:
push:
branches:
- "**"

schedule:
- cron: "0 0 * * *" # Run every day
workflow_dispatch:
create:
delete:
release:
issues:

jobs:
isort:
runs-on: ubuntu-latest
Expand All @@ -36,6 +35,6 @@ jobs:
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
git pull
git pull origin ${{ github.ref_name }}
git add .
git diff --quiet || (git commit -m "Sort imports and apply isort fixes" && git push)
git diff --quiet || (git commit -m "Sort imports and apply isort fixes" && git push origin ${{ github.ref_name }})
12 changes: 9 additions & 3 deletions .github/workflows/isort_pull.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: SENATOROV
name: "SENATOROV"

permissions:
contents: write # Grant write access to the repository contents

on:

pull_request:
Expand All @@ -13,6 +17,8 @@ on:
issues:
pull_request_review:
pull_request_review_comment:


jobs:
isort:
runs-on: ubuntu-latest
Expand All @@ -37,6 +43,6 @@ jobs:
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
git pull
git pull origin ${{ github.ref_name }}
git add .
git diff --quiet || (git commit -m "Sort imports and apply isort fixes" && git push)
git diff --quiet || (git commit -m "Sort imports and apply isort fixes" && git push origin ${{ github.ref_name }})
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,5 @@ target/
*.env # Environment variable files
coverage/


/Math/calculus/theory
/Math/school_theory
141 changes: 0 additions & 141 deletions DOCS.md

This file was deleted.

Loading

0 comments on commit 712e34a

Please sign in to comment.