Skip to content

Update format.yml

Update format.yml #50

Workflow file for this run

name: "format code"
# run on pull requests to develop
on:
pull_request:
branches:
- master
jobs:
format:
if: github.event.review.state == 'APPROVED'
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: format code
uses: DoozyX/[email protected]
with:
style: file
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
default_author: github_actions
commit_message: 🎨 apply clang-format changes
branch: ${{ github.head_ref }}