Skip to content

chore(ci): remove old set-output usage #453

chore(ci): remove old set-output usage

chore(ci): remove old set-output usage #453

Workflow file for this run

name: "Check Clang Format"
on: [push, pull_request]
jobs:
format:
name: "Check Clang Format"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Install clang-format"
run: |
sudo apt-get update
sudo apt-get install clang-format
- name: "Format Codes"
run: clang-format -i src/*.cpp src/*.h src/**/*.cpp src/**/*.h src/**/**/*.cpp src/**/**/*.h src/**/*.hpp
- name: Check diff
run: git diff --exit-code HEAD
- name: Create Pull Request
if: failure()
uses: peter-evans/create-pull-request@v3
with:
commit-message: "style: format codes"
title: "Format codes for ${{ github.ref }}"
labels: "style"
assignees: "${{ github.actor }}"
reviewers: "${{ github.actor }}"
branch: "auto-pr/clang-format/${{ github.ref }}"