From 2ea38e84bef141a2b4b7819b791f159a4631da2f Mon Sep 17 00:00:00 2001 From: Julia Kent <46687291+jukent@users.noreply.github.com> Date: Thu, 12 Dec 2024 11:44:46 -0700 Subject: [PATCH] Update resource gallery (#475) * Update update-resource-gallery.yaml Correct the fact that json file data being dumped into yaml file with incorrect format * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Simple line break added * don't overwrite yaml data * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add loader --------- Co-authored-by: Orhan Eroglu <32553057+erogluorhan@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/update-resource-gallery.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-resource-gallery.yaml b/.github/workflows/update-resource-gallery.yaml index 2351c2ca..650e85cc 100644 --- a/.github/workflows/update-resource-gallery.yaml +++ b/.github/workflows/update-resource-gallery.yaml @@ -98,7 +98,7 @@ jobs: new_data = json.load(file) with open(resource_gallery_file, 'r') as yaml_file: - existing_data = yaml.load(yaml_file) or [] + existing_data = yaml.load(yaml_file, Loader=yaml.SafeLoader) or [] existing_data.append(new_data)