Skip to content

Commit 2ea38e8

Browse files
jukenterogluorhanpre-commit-ci[bot]
authored
Update resource gallery (ProjectPythia#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 <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 3729e1a commit 2ea38e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/update-resource-gallery.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
new_data = json.load(file)
9999
100100
with open(resource_gallery_file, 'r') as yaml_file:
101-
existing_data = yaml.load(yaml_file) or []
101+
existing_data = yaml.load(yaml_file, Loader=yaml.SafeLoader) or []
102102
103103
existing_data.append(new_data)
104104

0 commit comments

Comments
 (0)