[bot] synced file(s) with Wall-Brew-Co/rebroadcast #150
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
# Automatically format clojure code using cljstyle | |
# For more information, please visit: https://github.com/Wall-Brew-Co/open-source/blob/master/README.md#automating-opinions | |
name: Formatter | |
on: [pull_request] | |
jobs: | |
formatting: | |
# This job requires the Wall Brew Bot Token, so it is only run on non-forked repositories | |
if: github.repository_owner == 'Wall-Brew-Co' | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository with our Wall Brew Bot Token | |
# We need this so any changes can be committed back to the repository | |
- name: Checkout Repository | |
id: checkout | |
uses: actions/[email protected] | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.WALL_BREW_BOT_PAT }} | |
- name: Install cljstyle | |
id: install-cljstyle | |
uses: just-sultanov/setup-cljstyle@v1 | |
with: | |
version: '0.14.0' | |
- name: Format Clojure Code | |
id: format | |
run: | | |
cljstyle fix --report --report-timing --verbose | |
- name: Commit Changes | |
id: commit | |
uses: stefanzweifel/[email protected] | |
with: | |
commit_message: | | |
[Format] Auto-formatting | |
# This file was automatically copied and populated by rebroadcast | |
# Do not edit this file directly, instead modify the source at https://github.com/Wall-Brew-Co/rebroadcast/blob/master/sources/github-actions/workflows/format.yml |