Skip to content

Commit 15c9961

Browse files
blakeffacebook-github-bot
authored andcommitted
Fix publish template url for GHA action (#46040)
Summary: Pull Request resolved: #46040 The URL to dispatch the workflow was not correct, see [0]. ## Changelog: [Internal] [0] https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event ## Internal: For S441191, see the job launched: - https://github.com/react-native-community/template/actions/runs/10404141179/job/28811993693 {F1806960111} Reviewed By: cipolleschi Differential Revision: D61333084 fbshipit-source-id: 62b20d792b9c667b3ee80d6d446423a6d24a67c2
1 parent 7d088f8 commit 15c9961

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ jobs:
201201
VERSION=$(grep -oE '\d+\.\d+' <<< "${{ github.ref_name }}" | { read version; echo "$version-stable"; })
202202
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
203203
204-
curl -L -X POST https://api.github.com/repos/react-native-community/template/release.yaml/dispatches \
204+
curl -L https://api.github.com/repos/react-native-community/template/actions/workflows/release.yaml/dispatches
205205
-H "Accept: application/vnd.github.v3+json" \
206206
-H "Authorization: Bearer $REACT_NATIVE_BOT_GITHUB_TOKEN" \
207-
-d "{\"ref\":\"$VERSION\",\"inputs\":{\"version\":\"${{ github.ref_name }}\",\"is_latest_on_npm\":\"$IS_LATEST\"}}\n"
207+
-d "{\"ref\":\"$VERSION\",\"inputs\":{\"version\":\"${{ github.ref_name }}\",\"is_latest_on_npm\":\"$IS_LATEST\"}}"
208208
- name: Wait for template to be published
209209
timeout-minutes: 3
210210
env:

0 commit comments

Comments
 (0)