From 3f58684cab0e49be10c7be7cf1d7be5458cbc5e0 Mon Sep 17 00:00:00 2001 From: Manjinder Date: Wed, 29 Apr 2026 18:18:45 +0530 Subject: [PATCH] ci: adds spec monitoring workflow tosync sandbox with spec repo Signed-off-by: Manjinder --- .github/workflows/monitor-spec-repo.yml | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/monitor-spec-repo.yml diff --git a/.github/workflows/monitor-spec-repo.yml b/.github/workflows/monitor-spec-repo.yml new file mode 100644 index 00000000..3244e60e --- /dev/null +++ b/.github/workflows/monitor-spec-repo.yml @@ -0,0 +1,27 @@ +name: Sync Spec and Implementation +on: + schedule: + - cron: '0 * * * *' # Every hour + workflow_dispatch: + +jobs: + sync-spec: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Run Code Generation + run: | + chmod +x ./standard/generates.sh + ./standard/generates.sh + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "chore: update spec reference and regenerate the code" + title: "chore: update spec reference and regenerate the code" + body: | + Automated update triggered by a change in the remote specification. + branch: "chore/auto-spec-sync" + delete-branch: true # Cleans up after the PR is merged