Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add action to sync v3 spec-json-schema updates with website #562

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
6dc6b8a
testing workflow
AceTheCreator Jan 9, 2025
3a244c2
testing...
AceTheCreator Jan 9, 2025
c4a4e22
added missing token
AceTheCreator Jan 9, 2025
0b40f1d
.
AceTheCreator Jan 9, 2025
5554f55
update main to master
AceTheCreator Jan 9, 2025
221f993
.
AceTheCreator Jan 9, 2025
a39ed1e
testing...
AceTheCreator Jan 9, 2025
f7b9bff
.
AceTheCreator Jan 9, 2025
04055ff
testt
AceTheCreator Jan 9, 2025
daeec90
update file
AceTheCreator Jan 9, 2025
906193d
.
AceTheCreator Jan 9, 2025
759e626
debugging missing token
AceTheCreator Jan 9, 2025
ecfe8d6
added environment key
AceTheCreator Jan 9, 2025
2d2020f
Add action for updating schema visualizer in the website
AceTheCreator Jan 9, 2025
d1a6fd1
removed the recursive flag
AceTheCreator Jan 28, 2025
3ef2bcb
Merge branch 'master' into automate-spec-update-to-website
AceTheCreator Jan 28, 2025
69c740c
Merge branch 'master' into automate-spec-update-to-website
AceTheCreator Mar 25, 2025
7e23a24
workflow test
AceTheCreator Mar 25, 2025
4903e62
update schema file name
AceTheCreator Mar 25, 2025
6e2bb23
testing with local website repo
AceTheCreator Mar 25, 2025
e706e5f
.
AceTheCreator Mar 25, 2025
4ad1424
added test branch
AceTheCreator Mar 25, 2025
823510f
.
AceTheCreator Mar 25, 2025
87bd5fb
check missing TOKEN error
AceTheCreator Mar 25, 2025
cfd3546
token update
AceTheCreator Mar 25, 2025
82f4cbe
.
AceTheCreator Mar 25, 2025
449bc7c
.
AceTheCreator Mar 25, 2025
383c924
typo
AceTheCreator Mar 25, 2025
57b0ace
.
AceTheCreator Mar 25, 2025
dcbbbc1
track point of failure
AceTheCreator Mar 25, 2025
762a236
final local test
AceTheCreator Mar 25, 2025
b1aa3f0
remove sha...
AceTheCreator Mar 25, 2025
869a81a
mod schema
AceTheCreator Mar 25, 2025
d8210f3
.
AceTheCreator Mar 25, 2025
8a3b7f7
.
AceTheCreator Mar 25, 2025
8df9188
.
AceTheCreator Mar 25, 2025
a4853a5
added suggested changes
AceTheCreator Mar 25, 2025
12d7a7e
Merge branch 'master' into automate-spec-update-to-website
AceTheCreator Mar 25, 2025
abf7821
Delete schemas/3.0.0-without-$id.json
AceTheCreator Apr 10, 2025
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
49 changes: 49 additions & 0 deletions .github/workflows/copy-updated-schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Sync Schema Update to Website

on:
push:
branches:
- master
- automate-spec-update-to-website

paths:
# Monitor changes in this v3 file
- schemas/3.0.0-without-$id.json

jobs:
sync-schema:
runs-on: ubuntu-latest
steps:
- name: Checkout spec-json-schema repo
uses: actions/checkout@v3

- name: Checkout website repo
uses: actions/checkout@v3
with:
repository: asyncapi/website
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
path: ./website

- name: Copy version 3 Schema File
run: |
cp schemas/3.0.0-without-\$id.json website/config/3.0.0.json

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
path: website
commit-message: "chore: sync latest spec json schema updates"
committer: asyncapi-bot <[email protected]>
author: asyncapi-bot <[email protected]>
title: "chore: sync latest spec-json-schema update"
body: |
Automated Pull Request to sync latest schema update from spec-json-schema repository.

Updates to: `config/3.0.0`
branch: update-schema-${{ github.sha }}
labels: |
automated
spec-json-schema-sync
base: master
delete-branch: true
Loading