-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.44 KB
/
bump-version.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Bump clang-tools binaries version
on:
push:
branches:
- "main"
workflow_dispatch:
jobs:
bump_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: pip install requests
- name: Bump version
id: bump
run: |
cd .github/workflows
bump_tag=`python3 bump-version.py`
echo "bump_tag=$bump_tag" >> $GITHUB_OUTPUT
cd ${{ github.workspace }}
if git diff --exit-code; then
echo "No changes detected."
exit 0
fi
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
add-paths: "clang_tools/__init__.py"
commit-message: "chore: bump clang-tools-static-binaries to ${{ steps.bump.outputs.bump_tag }}"
title: "Bump cpp-linter/clang-tools-static-binaries to ${{ steps.bump.outputs.bump_tag }}"
body: |
Bump [cpp-linter/clang-tools-static-binaries](https://github.com/cpp-linter/clang-tools-static-binaries/releases) to `${{ steps.bump.outputs.bump_tag }}`
- This PR was auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
base: main
labels: dependencies
branch: bump-clang-tools-static-binaries-version
delete-branch: true