Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/update-website-board-governance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ jobs:
- name: Prepend autogenerated comment to YAML
working-directory: ./community
run: |
echo '# ⚠️ This file is generated. Do not edit manually. Check this workflow for more details: .github/workflows/update-website-board-governance.yml' | cat - TSC_BOARD_MEMBERS.yaml > temp && mv temp TSC_BOARD_MEMBERS.yaml
echo '# ⚠️ This file is auto-generated. Do not edit manually. Check this workflow for more details: .github/workflows/update-website-board-governance.yml' | cat - TSC_BOARD_MEMBERS.yaml > temp && mv temp TSC_BOARD_MEMBERS.yaml

- name: Convert YAML to JSON using Python
working-directory: ./community
run: |
pip install pyyaml==6.0.1
python -c 'import sys, yaml, json; json.dump(yaml.safe_load(sys.stdin), sys.stdout, indent=4)' < TSC_BOARD_MEMBERS.yaml > TSC_BOARD_MEMBERS.json

- name: Configure Git
run: |
Expand All @@ -60,16 +66,16 @@ jobs:
- name: Replicate TSC board members file from current to another repository
working-directory: ./website
run: |
cp ../community/TSC_BOARD_MEMBERS.yaml ./config/TSC_BOARD_MEMBERS.yaml
cp ../community/TSC_BOARD_MEMBERS.json ./config/TSC_BOARD_MEMBERS.json

- name: Commit and push changes to the website repository
working-directory: ./website
run: |
git add config/TSC_BOARD_MEMBERS.yaml
git add config/TSC_BOARD_MEMBERS.json
git commit -m "docs(community): update latest Board members list"
git push https://${{ env.GITHUB_TOKEN }}@github.com/asyncapi/website

- name: Create PR
- name: Create PR to website repository
working-directory: ./website
run: |
gh pr create --title "docs(community): update latest Board and TSC members list" \
Expand All @@ -92,5 +98,5 @@ jobs:
working-directory: ./community
run: |
gh pr create --title "chore: update TSC and board members list" \
--body "This PR updates the autogenerated TSC and board members YAML file; please review the pull request that introduces new board members to the list." \
--body "This PR updates the auto-generated TSC and board members YAML file; please review the pull request that introduces new board members to the list." \
--head "update-tsc-board-${{ github.sha }}"