Skip to content

[No QA] Create workflow to warn on native file changes #1

[No QA] Create workflow to warn on native file changes

[No QA] Create workflow to warn on native file changes #1

name: Comment on native files changed

Check failure on line 1 in .github/workflows/commentOnNativeFileChanged.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/commentOnNativeFileChanged.yml

Invalid workflow file

Invalid `steps` value - steps should be list of `uses` or `run` items
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 }}