diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml index d45c9568..e51c3a78 100644 --- a/.github/workflows/cppcheck.yml +++ b/.github/workflows/cppcheck.yml @@ -1,5 +1,5 @@ name: cppcheck-action-test -on: [pull_request] +on: [push] jobs: build: @@ -9,6 +9,18 @@ jobs: - uses: actions/checkout@v2 - name: cppcheck - uses: chmorgan/cppcheck-action@main + 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/}