Skip to content

Commit

Permalink
SQUASH: use linuxdeepin/action-cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmer25 committed Feb 29, 2024
1 parent 4880094 commit 8ea403d
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
name: cppcheck-action-test
name: cppcheck
on: [push]

jobs:
build:
name: cppcheck-test
cppchceck:
name: cppcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: cppcheck
uses: deep5050/cppcheck-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN}}

- name: Print current branch
run: echo "Current branch is ${{ github.ref }}"

- name: Print current branch
run: echo "Current branch is ${GITHUB_REF#refs/heads/}"

- name: publish report
uses: mikeal/publish-to-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: ${GITHUB_REF#refs/heads/}
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: linuxdeepin/action-cppcheck@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
pull_request_id: ${{ github.event.pull_request.number }}

0 comments on commit 8ea403d

Please sign in to comment.