File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/render-html/scripts Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2626 run : npm install -g @react-native-community/cli
2727 - name : Init new project
2828 run : react-native init --npm test; cd test
29- - name : Install @next
29+ - name : " Install version ${{ github.event.inputs.version }} "
3030 run : " npm install react-native-render-html@${{ github.event.inputs.version }}"
Original file line number Diff line number Diff line change @@ -44,12 +44,13 @@ execGit() {
4444}
4545
4646runGithubActions () {
47+ # https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event
4748 curl \
4849 -X POST \
4950 -H " Accept: application/vnd.github.v3+json" \
5051 -H " authorization: Bearer $GITHUB_TOKEN " \
51- https://api.github.com/repos/meliorence/react-native-render-html/dispatches \
52- -d ' {"event_type ":"workflow_dispatch ","inputs":{"version":"' " ${version} " ' },"workflow":".github/workflows/npm.yml" }'
52+ https://api.github.com/repos/meliorence/react-native-render-html/actions/workflows/npm.yml/ dispatches \
53+ -d ' {"ref ":"master ","inputs":{"version":"' " ${version} " ' "} }'
5354}
5455
5556# echo 0 if $1 == $2, 1 if $1 > $2, -1 if $1 < $2
You can’t perform that action at this time.
0 commit comments