From 23faf47b598c3a5723c9f05b6008aaed12af7672 Mon Sep 17 00:00:00 2001
From: Peiyang Song <psong@caltech.edu>
Date: Mon, 8 Jul 2024 17:39:48 +0800
Subject: [PATCH] Upgrade github workflow to node16

This solves the warning message in CI: "The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/".
---
 .github/workflows/format_code.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/format_code.yaml b/.github/workflows/format_code.yaml
index d7ec8b9..4bd04d2 100644
--- a/.github/workflows/format_code.yaml
+++ b/.github/workflows/format_code.yaml
@@ -4,7 +4,7 @@ jobs:
   format-code:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
       - uses: psf/black@stable
         with:
           options: "--check --diff"