-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1.09 KB
/
clang-format.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
name: clang-format
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
workflow_dispatch:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
code-format:
runs-on: [ ubuntu-22.04 ]
steps:
- uses: actions/checkout@v4.1.1
- uses: de-vri-es/setup-git-credentials@v2.1.2
with:
credentials: ${{ secrets.GITHUB_TOKEN }}
- name: setting-up-git
run: git config --global user.name "${{ secrets.AGENT_NAME }}" && git config --global user.email "${{ secrets.EMAIL }}"
- name: setting up python3
run: |
sudo apt update &&\
sudo apt install build-essential software-properties-common -y &&\
sudo add-apt-repository ppa:deadsnakes/ppa &&\
sudo apt update &&\
sudo apt install python3.11 -y &&\
python3 --version
- name: python venv setting up
run: |
python3 -m venv venv &&\
source venv/bin/activate
- name: formatting code
run: python scripts/run_clang_code_format.py
- name: commiting changes
run: python .github/workflows/scripts/commit_changes.py