Sync Play Billing skills #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Play Billing skills | |
| # Pull-based sync for the revenuecat-play-billing plugin. The source of truth | |
| # is the revenuecat/ collection in RevenueCat/play-billing-skills; this | |
| # workflow regenerates the vendored copy and opens a PR when it changed. | |
| # | |
| # Requires the repo setting "Allow GitHub Actions to create and approve pull | |
| # requests" (Settings → Actions → General → Workflow permissions). | |
| on: | |
| schedule: | |
| - cron: '0 9 * * 1' # Mondays 09:00 UTC | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check out play-billing-skills | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: RevenueCat/play-billing-skills | |
| path: .play-billing-skills | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Sync skills | |
| run: | | |
| node scripts/sync-play-billing.mjs .play-billing-skills | |
| rm -rf .play-billing-skills | |
| - name: Create pull request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| branch: sync/play-billing-skills | |
| delete-branch: true | |
| commit-message: Sync Play Billing skills from play-billing-skills | |
| title: Sync Play Billing skills from play-billing-skills | |
| body: | | |
| Automated sync of the `revenuecat/` collection from | |
| [RevenueCat/play-billing-skills](https://github.com/RevenueCat/play-billing-skills) | |
| into the `revenuecat-play-billing` plugin. | |
| Generated by `.github/workflows/sync-play-billing.yml` via | |
| `scripts/sync-play-billing.mjs`. |