Skip to content

Show total number of steps #312

Show total number of steps

Show total number of steps #312

Workflow file for this run

name: style
on:
push:
paths:
- '.github/workflows/style.yml'
- 'custom-prompt/*'
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: ./clang-format.bash check
working-directory: custom-prompt
name: Check if C and C++ headers and sources are formatted correctly
format:
if: github.ref_type != 'tag' && github.ref_name != github.event.repository.default_branch
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- run: |
./clang-format.bash
git config user.name 'Github Actions'
git config user.email '[email protected]'
git commit -am 'Formatted' && git push || true
working-directory: custom-prompt
name: Format C and C++ headers and sources, commit, and push