Skip to content

Detect public api changes #34

Detect public api changes

Detect public api changes #34

name: Detect public API changes
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- develop
jobs:
build:
runs-on: macos-14-xlarge # Apple Silicon Runner
steps:
- uses: actions/checkout@v4
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Select latest Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.1'
- name: 🔍 Detect Changes
run: |
Scripts/generate_public_interface_definition.sh ${branch} ${baseRepo}
env:
branch: '${{github.event.pull_request.base.ref}}'
baseRepo: '${{github.server_url}}/${{github.repository}}.git'
- name: 📝 Comment on PR
uses: thollander/actions-comment-pull-request@v2
with:
filePath: "${{ github.workspace }}/api_comparison.md"
comment_tag: api_changes
mode: recreate