Skip to content

Commit af10071

Browse files
dependabot[bot]mergify[bot]
authored andcommitted
Bump actions/setup-python from 5 to 6 (#1487)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v5...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit 7b503f1) # Conflicts: # .github/workflows/ci-format.yml # .github/workflows/update-ci.yml
1 parent f13886c commit af10071

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/workflows/ci-format.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
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:
@@ -24,3 +25,14 @@ jobs:
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))

.github/workflows/update-ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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 }}"

0 commit comments

Comments
 (0)