File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 1515 name : Format
1616 runs-on : ubuntu-22.04
1717 steps :
18+ <<<<<<< HEAD
1819 - uses : actions/checkout@v4
1920 - uses : actions/setup-python@v5
2021 with :
2425 -
uses :
pre-commit/[email protected] 2526 with :
2627 extra_args : --all-files --hook-stage manual
28+ =======
29+ - uses : actions/checkout@v4
30+ - uses : actions/setup-python@v6
31+ with :
32+ python-version : 3.10.4
33+ - name : Install system hooks
34+ run : sudo apt-get install clang-format-14 cppcheck
35+ -
uses :
pre-commit/[email protected] 36+ with :
37+ extra_args : --all-files --hook-stage manual
38+ >>>>>>> 7b503f1 (Bump actions/setup-python from 5 to 6 (#1487))
Original file line number Diff line number Diff line change 1+ # Auto-update CI tools regularly
2+
3+ name : CI auto-update
4+
5+ on :
6+ schedule :
7+ # Run weekly
8+ - cron : ' 23 5 * * 0'
9+ workflow_dispatch :
10+
11+ jobs :
12+ ci_auto_update :
13+ name : CI auto-update
14+ runs-on : ubuntu-latest
15+ steps :
16+ # Setup pre-commit
17+ - uses : actions/checkout@v4
18+ - uses : actions/setup-python@v6
19+ with :
20+ python-version : 3.10.4
21+ - name : Install pre-commit
22+ run : pip install pre-commit
23+
24+ # Run update
25+ - name : Run pre-commit autoupdate
26+ run : pre-commit autoupdate
27+
28+ # Create pull request
29+ - name : Create pull-request
30+ id : cpr
31+ uses : peter-evans/create-pull-request@v7
32+ with :
33+ branch : update-ci/pre-commit-autoupdate
34+ delete-branch : true
35+ title : Auto-update pre-commit hooks
36+ committer : github-actions[bot] <github-actions[bot]@users.noreply.github.com>
37+ author : github-actions[bot] <github-actions[bot]@users.noreply.github.com>
38+ commit-message : Auto-update pre-commit hooks
39+ labels : CI
40+ - name : Check outputs
41+ if : ${{ steps.cpr.pull-request-number }}
42+ run : echo "Opened pull request ${{ steps.cpr.outputs.pull-request-number }} - ${{ steps.cpr.outputs.pull-request-url }}"
You can’t perform that action at this time.
0 commit comments