CONFIG COLLECTOR #2618
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: "CONFIG COLLECTOR" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '*/60 * * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
- name: Execute PHP script | |
run: | | |
php collect.php | |
git config --global user.email "[email protected]" | |
git config --global user.name "KoshulaDora" | |
git config credential.helper store | |
git add -A | |
git commit -m "🚀 Servers Updated - $(TZ='Asia/Tehran' date '+%Y-%m-%d %H:%M:%S')" | |
git push |