Skip to content

Update Apple Spec #2754

Update Apple Spec

Update Apple Spec #2754

Workflow file for this run

name: Update Apple Spec
on:
pull_request:
branches:
- main
paths:
- .github/workflows/update.yml
- specs/**
- update/**
schedule:
# Runs at 10:00 and 20:00 UTC daily
- cron: "0 10,20 * * *"
workflow_dispatch: # Allows manual triggering
permissions:
contents: write # Needed for creating pull requests
pull-requests: write # Needed for PR operations
jobs:
update-spec:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Ensures full history for PR creation
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
cache-dependency-path: update/yarn.lock
- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: update
- name: Run update script
working-directory: update
run: yarn start
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set Apple API version
working-directory: update
run: echo "APPLE_API_VERSION=$(cat apple-api-version.txt)" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: update App Store Connect API to v${{ env.APPLE_API_VERSION }}"
base: main
branch: spec/update-v${{ env.APPLE_API_VERSION }}
title: "chore: update App Store Connect API to v${{ env.APPLE_API_VERSION }}"
body: |
Updates the App Store Connect API specification to version ${{ env.APPLE_API_VERSION }}.
See the [App Store Connect API documentation](https://developer.apple.com/documentation/appstoreconnectapi) for more details.
---
This PR was auto-generated by the Update Apple Spec workflow.
reviewers: EvanBacon
labels: automerge, api-update
add-paths: |
specs/*.json
update/apple-api-version.txt