Skip to content

Sync Play Billing skills #4

Sync Play Billing skills

Sync Play Billing skills #4

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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Check out play-billing-skills
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: RevenueCat/play-billing-skills
path: .play-billing-skills
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
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@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
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`.