From 363d26093d380f3b0de74f7862d0fac5dc9046fe Mon Sep 17 00:00:00 2001 From: Angad Date: Thu, 7 Sep 2023 18:11:24 -0700 Subject: [PATCH 1/3] chore: add Prettier action, bump actions/checkout version --- .github/workflows/maintenance.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 From d1722506e491e7b159505bcf574e5c39aad9cafa Mon Sep 17 00:00:00 2001 From: Angad Date: Thu, 7 Sep 2023 18:14:44 -0700 Subject: [PATCH 2/3] fix: fix main_ci.yml to only run build tests on changes to CommonLibSF/** --- .github/workflows/main_ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main_ci.yml b/.github/workflows/main_ci.yml index 19875842..b1174675 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: From 04537eb249f6790d7a064f13d1ec1eaebe89bbb3 Mon Sep 17 00:00:00 2001 From: Angad Date: Thu, 7 Sep 2023 18:22:23 -0700 Subject: [PATCH 3/3] chore: bump actions/checkout version in main_ci.yml --- .github/workflows/main_ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main_ci.yml b/.github/workflows/main_ci.yml index b1174675..8bf7d2b5 100644 --- a/.github/workflows/main_ci.yml +++ b/.github/workflows/main_ci.yml @@ -21,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