Skip to content

Commit

Permalink
added new method to convert yaml to jason
Browse files Browse the repository at this point in the history
  • Loading branch information
14Richa committed Jun 30, 2023
1 parent 2bbc9f1 commit dcae691
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/update-website-tsc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ name: Update list of TSC members in the website repo
on:
push:
branches:
- 'master'
- "master"
paths:
- 'MAINTAINERS.yaml'

- "MAINTAINERS.yaml"
jobs:
update-website:
name: Make PR on website repository with updated tsc members list
Expand All @@ -28,10 +27,10 @@ jobs:
run: |
git config --global user.name asyncapi-bot
git config --global user.email [email protected]
- name: Convert YAML to JSON
- name: Convert YAML to JSON using Python
working-directory: ./community
run: |
cat Maintainers.yaml | yaml2json > MAINTAINERS.json
python -c 'import sys, yaml, json; json.dump(yaml.safe_load(sys.stdin), sys.stdout, indent=4)' < MAINTAINERS.yaml > MAINTAINERS.json
- name: Copy tsc members file from Current Repo to Another
working-directory: ./website
run: |
Expand Down

0 comments on commit dcae691

Please sign in to comment.