-
-
Notifications
You must be signed in to change notification settings - Fork 9
29 lines (25 loc) · 736 Bytes
/
update_version.yml
File metadata and controls
29 lines (25 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 github-actions@github.com
git add bcd_version
git diff --quiet && git diff --staged --quiet || git commit -m "Update bcd version"
git push