-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 962 Bytes
/
cpp_check.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
name: cppcheck-action-test
on:
push:
branches: [main]
jobs:
# From: https://github.com/marketplace/actions/update-git-branch
updateBranch:
name: Update cpp_check branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: Embraser01/[email protected]
if: github.ref == 'refs/heads/main'
with:
branch: cpp_check
force: 1 # To push-force to the branch
githubToken: ${{ secrets.PAT_TOKEN }} # Github Token
# From: https://github.com/marketplace/actions/cppcheck-action
build:
name: cppcheck-test
runs-on: ubuntu-latest
steps:
- name: cppcheck
uses: deep5050/cppcheck-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
- name: publish report
uses: mikeal/publish-to-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: 'cpp_check'