Skip to content

Commit

Permalink
chore: add Prettier action, bump actions/checkout version (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirdEyeSqueegee authored Sep 8, 2023
1 parent 4d1c687 commit bffee03
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Main CI
on:
pull_request:
branches: [main, feature/*]
paths:
- "CommonLibSF/**"
workflow_dispatch:

env:
Expand All @@ -19,7 +21,7 @@ jobs:
- clang-cl
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup MSVC Environment
uses: ilammy/[email protected]
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [main]
paths:
- ".github/workflows/main_ci.yml"
- ".github/workflows/*.yml"
- "CommonLibSF/**"

jobs:
Expand All @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Update Starfield.h
shell: pwsh
Expand All @@ -29,6 +29,11 @@ jobs:
clangFormatVersion: 16
inplace: True

- name: Prettier
uses: actionsx/prettier@v3
with:
args: --write "{.github/workflows/*.yml}" "{CommonLibSF/*.json}"

- name: Update vcpkg version-date
id: versioning
shell: pwsh
Expand Down

0 comments on commit bffee03

Please sign in to comment.