Generate RouteOS Chnroute Script #69
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: Generate RouteOS Chnroute Script | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * 4" | |
push: | |
branches: | |
- main | |
jobs: | |
run-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Run script | |
run: | | |
chmod +x ros_chnroute.sh | |
bash ros_chnroute.sh | |
- name: Commit changes | |
run: | | |
git config --global user.name 'dante' | |
git config --global user.email '[email protected]' | |
git add . | |
git commit -m 'auto update chnroute.rsc' | |
git push |