Skip to content

[bot] synced file(s) with Wall-Brew-Co/rebroadcast #633

[bot] synced file(s) with Wall-Brew-Co/rebroadcast

[bot] synced file(s) with Wall-Brew-Co/rebroadcast #633

Workflow file for this run

# 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]
permissions:
contents: write
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:
- name: Echo Trigger
id: echo-trigger
run: echo "Job triggered by ${{ github.event_name }}"
- name: Echo Runner OS
id: echo-runner-os
run: echo "Job running on ${{ runner.os }} server"
- name: Echo Git Ref
id: echo-git-ref
run: echo "Using ${{ github.ref }} branch from ${{ github.repository }} repository"
# Checkout the repository with our Wall Brew Bot Token
# We need this so any changes can be committed back to the repository
# https://github.com/actions/checkout
- name: Checkout Repository
id: checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.WALL_BREW_BOT_PAT }}
# https://github.com/actions/setup-java
- name: Setup Java
id: install-java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: 'temurin'
java-version: '21'
# This should match system.properties
# https://github.com/DeLaGuardo/setup-clojure
- name: Install Leiningen
id: install-leiningen
uses: DeLaGuardo/setup-clojure@4c7a6f613e5089821bb3bb2a33a3ee115578580d # 13.6.1
with:
# renovate: datasource=github-releases depName=technomancy/leiningen
lein: '2.13.0'
# renovate: datasource=github-releases depName=clj-kondo/clj-kondo versioning=loose
clj-kondo: '2026.05.25'
# renovate: datasource=github-releases depName=greglook/cljstyle
cljstyle: '0.17.642'
- name: Format Clojure Code
id: format
run: |
cljstyle fix --report --report-timing --verbose
# https://github.com/stefanzweifel/git-auto-commit-action
- name: Commit Changes
id: commit
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
with:
commit_message: |
[Format] Auto-formatting
- name: Echo Status
id: echo-status
run: echo "Job status is ${{ job.status }}."
# 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