Skip to content

Commit

Permalink
Run stylua+doc-generation on push.
Browse files Browse the repository at this point in the history
Push directly to master will not produce any changes by stylua (run
locally before push).
  • Loading branch information
L3MON4D3 committed Feb 8, 2022
1 parent c9e91bb commit 132eff7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/format.yaml

This file was deleted.

13 changes: 11 additions & 2 deletions .github/workflows/doc.yaml → .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Doc generation
name: Generate docs and format

on: [push, pull_request_target]
on: push

jobs:
postprocessing:
Expand All @@ -15,3 +15,12 @@ jobs:
with:
commit_message: "Auto generate docs"
branch: ${{ github.head_ref }}
- name: "Format with Stylua"
uses: JohnnyMorganz/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: .
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Format with stylua"
branch: ${{ github.head_ref }}

0 comments on commit 132eff7

Please sign in to comment.