[No QA] Create workflow to warn on native file changes #1
Workflow file for this run
This file contains 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: Comment on native files changed | ||
on: | ||
pull_request: | ||
branches: | ||
- 'main' | ||
paths: | ||
- '**.kt' | ||
- '**.java' | ||
- '**.swift' | ||
- '**.mm' | ||
- '**.h' | ||
jobs: | ||
commentOnNativeFilesChanged: | ||
name: Create comment | ||
runs-on: ubuntu-latest | ||
steps: | ||
run: | | ||
gh pr comment ${{ steps.getMergedPullRequest.outputs.number }} --body \ | ||
":warning: This PR changes native code. It may cause problems in Hybrid App. Please notify people working on it to review those changes. :warning:" | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} |