Bump jurplel/install-qt-action from 3.2.1 to 3.3.0 #147
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Clang Format | |
on: [push, pull_request] | |
jobs: | |
format: | |
name: "Check Clang Format" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: "Install clang-format-11" | |
run: | | |
sudo apt-get update | |
sudo apt-get install clang-format-11 | |
- name: "Format Codes" | |
run: clang-format-11 -i src/*.cpp src/*/*.cpp src/*/*.hpp tests/*.cpp tests/*.hpp | |
- name: Check diff | |
run: git diff --exit-code HEAD | |
- name: Create Pull Request | |
if: failure() | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: "style: Format codes" | |
title: "style: format codes for ${{ github.ref }}" | |
labels: "auto-pr/style" | |
assignees: "${{ github.actor }}" | |
reviewers: "${{ github.actor }}" | |
branch: "auto-pr/clang-format/${{ github.ref }}" |