summaryrefslogtreecommitdiff
path: root/attic
diff options
context:
space:
mode:
authorJoseph Henry <[email protected]>2021-05-30 21:30:25 -0700
committerJoseph Henry <[email protected]>2021-05-30 21:30:25 -0700
commit50d99aca9875d156d8c59e49b254dcfce37f3356 (patch)
treecc10cae7dfcdafa881a45fc8d4dab0ea4f396f7e /attic
parent54bb892aaa81a23738a5bf54c661e5edc32c5df3 (diff)
Move auto-format.yml to attic
Diffstat (limited to 'attic')
-rw-r--r--attic/auto-format.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/attic/auto-format.yml b/attic/auto-format.yml
new file mode 100644
index 0000000..dae8213
--- /dev/null
+++ b/attic/auto-format.yml
@@ -0,0 +1,24 @@
+name: Code style compliance check
+on: push
+
+jobs:
+ run:
+ name: Format
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v2
+
+ - name: Install black
+ run: pip3 install black
+
+ - name: Format code
+ run: ./build.sh format-code "all"
+
+ - name: Commit changes
+ uses: joseph-henry/add-and-commit@v7
+ with:
+ author_name: github-actions
+ author_email: 41898282+github-actions[bot]@users.noreply.github.com
+ message: 'Code style enforcement'
+ add: '.'