-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (65 loc) · 2.79 KB
/
Copy pathformat.yml
File metadata and controls
79 lines (65 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
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@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.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.12.0'
# renovate: datasource=github-releases depName=clj-kondo/clj-kondo versioning=loose
clj-kondo: '2026.07.24'
# 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@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.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