Skip to content
Merged
Show file tree
Hide file tree
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
48 changes: 48 additions & 0 deletions .github/workflows/update-ranking-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Update Ranking Data

on:
schedule:
# Monthly, 1st of the month, 02:00 UTC.
- cron: '0 2 1 * *'
workflow_dispatch: {}

permissions:
contents: write
pull-requests: write

jobs:
update-ranking-data:
name: Generate ranking-data.json
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v7

- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: '18'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run ranking data generator
run: node scripts/generate-ranking-data.js

- name: Create PR if ranking data changed
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore: update connector ranking data'
title: 'Scheduled update: connector ranking data'
body: |
Automated update to the connector ranking data, generated from live
Ballerina Central data.

Please review the diff before merging -- this file directly drives
"Most Popular" sort order on the Integration Store.
branch: automated/update-ranking-data
delete-branch: true
add-paths: public/ranking-data.json
Loading
Loading