Skip to content

Commit

Permalink
run format checker
Browse files Browse the repository at this point in the history
Signed-off-by: Anant Thazhemadam <anant.thazhemadam@gmail.com>
  • Loading branch information
thazhemadam committed Mar 5, 2024
1 parent dfe2095 commit 1de53c9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ on:
outputs:
formatted:
description: "If the specified directory is already formatted or not."
value: "${{ jobs.run-julia-formatter.outputs.formatted }}"
value: "${{ jobs.format-check.outputs.formatted }}"
format-diff-patch:
description: "A patch consisting of formatting changes which can be applied to comply with format checking. Available only if `outputs.formatted` is `false`"
value: "${{ jobs.run-julia-formatter.outputs.formatting-changes }}"
value: "${{ jobs.format-check.outputs.formatting-changes }}"

jobs:
run-julia-formatter:
name: "Run JuliaFormatter"
format-check:
name: "Check Formatting"
runs-on: ubuntu
outputs:
formatted: "${{ steps.check-formatting.outputs.formatted }}"
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Format Check"

on:
push:
branches:
- "at/reusable-workflows"

jobs:
format:
name: "Format Checker"
uses: "./.github/workflows/format-check.yml"

0 comments on commit 1de53c9

Please sign in to comment.