ChromeUniverse Clang-format π #2
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: Pull Request Approved | |
run-name: ${{ github.actor }} Clang-format π | |
on: | |
pull_request_review: | |
types: [submitted] | |
defaults: | |
run: | |
shell: bash -leo pipefail {0} | |
jobs: | |
format: | |
if: github.event.review.state == 'approved' | |
runs-on: [self-hosted,linux] | |
steps: | |
- uses: actions/[email protected] | |
with: | |
# check out HEAD on the branch | |
ref: ${{ github.head_ref }} | |
# Feature just to grab the branch in newer version | |
fetch-depth: 0 | |
- run: ${GITHUB_WORKSPACE}/.github/workflows/format.sh | |
# commit the changes (if there are any) | |
- name: Commit changes | |
uses: stefanzweifel/[email protected] | |
with: | |
commit_message: π¨ apply clang-format changes | |
branch: ${{ github.head_ref }} |