Update Extensions DB #189
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 Extensions DB | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Schedule to run at 12:00 AM and 12:00 PM (UTC) | |
workflow_dispatch: # Allow manual triggering | |
jobs: | |
update-database: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up JDK (v17) | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Run the Update | |
run: java -jar Extensions/Application/Binary/Extensions.jar -update | |
- name: Commit and Push Changes | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "NaveenB2004" | |
git add . | |
git commit -m "Update Extensions Database" || true # Commit changes if any | |
git push origin HEAD:main |