Skip to content

Commit

Permalink
Update resource gallery (#475)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored Dec 12, 2024
1 parent 3729e1a commit 2ea38e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update-resource-gallery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ea38e8

Please sign in to comment.