Update Configs #31738
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: Update Configs | |
permissions: write-all | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
# Run every 10 minutes | |
- cron: "*/10 * * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Stash any local changes | |
run: git stash | |
- name: Install dependencies | |
run: cd Files && pip install -r requirements.txt | |
- name: Run Config script and save output to file | |
run: cd Files && python app.py | |
- name: Run Warp script and save output to file | |
run: cd Files && python warp.py | |
- name: Run Splitter script and save output to file | |
run: cd Files && python sort.py | |
- name: Check changes | |
run: | | |
echo "Checking the changes made..." | |
git status | |
ls -l Files/ | |
- name: Commit and push files | |
uses: EndBug/add-and-commit@v7 | |
with: | |
author_name: "Github Actions" | |
author_email: "[email protected]" | |
message: "Updated 9 minutes Ago ⚡️" | |
add: "." | |
push: "https://github.com/barry-far/V2ray-Configs.git" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |