Update Counters #10
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 Counters | |
on: | |
schedule: | |
- cron: '30 7 2 * *' # This triggers at 7:55 AM (Paris time) on the 2nd day of each month | |
jobs: | |
update_counters: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: Install Dependencies | |
run: npm install | |
- name: Run Update Counters Script | |
run: node .github/scripts/update-counters.js | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
commit-message: "[Automatique] Mise à jour des compteurs" | |
title: "Compteurs - Mise à jour automatique" | |
body: "Mise à jour automatique des compteurs via une github action." | |
base: main | |
branch: update-counters-${{ github.run_id }} | |
delete-branch: true |