Skip to content

Commit f2390fb

Browse files
committed
fix workflow
1 parent a153e36 commit f2390fb

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/commentOnNativeFileChanged.yml

+12-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,18 @@ on:
1111
- '**.mm'
1212
- '**.h'
1313

14+
15+
env:
16+
PULL_REQUEST_NUMBER: ${{ github.event.number || github.event.inputs.PULL_REQUEST_NUMBER }}
17+
1418
jobs:
1519
commentOnNativeFilesChanged:
1620
name: Create comment
17-
run: |
18-
gh pr comment ${{ steps.getMergedPullRequest.outputs.number }} --body \
19-
":warning: This PR changes native code. It may cause problems in Hybrid App. Please notify people working on it to review those changes. :warning:"
20-
env:
21-
GITHUB_TOKEN: ${{ github.token }}
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Comment
24+
run: |
25+
gh pr comment ${{ env.PULL_REQUEST_NUMBER }} --body \
26+
":warning: This PR changes native code. It may cause problems in Hybrid App. Please notify people working on it to review those changes. :warning:"
27+
env:
28+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)