Local version of #908 #1065
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
on: | |
pull_request: [] | |
name: Apply Style | |
jobs: | |
apply-style: | |
name: Apply Style to Source | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- name: Apply style updates | |
uses: ./.github/actions/apply-style | |
- name: Push changed files | |
run: | | |
printf "GitHub Actor: ${GITHUB_ACTOR}\n" | |
git config user.name "github-actions" | |
git config user.email "[email protected]" | |
if [ -n "$(git status --porcelain)" ]; then | |
git commit -am 'Apply style updates' | |
git push | |
fi |