Update the bcd version #24
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 the bcd version | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 6' # Run at 00:00 UTC every Saturday | |
permissions: | |
contents: write | |
jobs: | |
update_bcd: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Update version | |
run: | | |
python tools/update_bcd_version.py | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add bcd_version | |
git diff --quiet && git diff --staged --quiet || git commit -m "Update bcd version" | |
git push |