From bffee03cbc28cdf9a065fcb46c8a6a32491b87f8 Mon Sep 17 00:00:00 2001 From: Angad <66992519+ThirdEyeSqueegee@users.noreply.github.com> Date: Thu, 7 Sep 2023 18:38:16 -0700 Subject: [PATCH] chore: add Prettier action, bump actions/checkout version (#16) --- .github/workflows/main_ci.yml | 4 +++- .github/workflows/maintenance.yml | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main_ci.yml b/.github/workflows/main_ci.yml index 19875842..8bf7d2b5 100644 --- a/.github/workflows/main_ci.yml +++ b/.github/workflows/main_ci.yml @@ -3,6 +3,8 @@ name: Main CI on: pull_request: branches: [main, feature/*] + paths: + - "CommonLibSF/**" workflow_dispatch: env: @@ -19,7 +21,7 @@ jobs: - clang-cl steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup MSVC Environment uses: ilammy/msvc-dev-cmd@v1.10.0 diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml index d1769b62..213cac4d 100644 --- a/.github/workflows/maintenance.yml +++ b/.github/workflows/maintenance.yml @@ -4,7 +4,7 @@ on: push: branches: [main] paths: - - ".github/workflows/main_ci.yml" + - ".github/workflows/*.yml" - "CommonLibSF/**" jobs: @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Update Starfield.h shell: pwsh @@ -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