Skip to content

Commit ec94f5f

Browse files
committed
Change repository dispatch to a curl
1 parent 8cff300 commit ec94f5f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/release-staging.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,16 @@ jobs:
113113
NPM_TOKEN_API_DOCUMENTER: ${{ secrets.NPM_TOKEN_API_DOCUMENTER }}
114114
CI: true
115115
- name: Launch E2E tests workflow
116-
uses: peter-evans/repository-dispatch@v2
117-
with:
118-
token: ${{ secrets.OSS_BOT_GITHUB_TOKEN }}
119-
repository: firebase/firebase-js-sdk
120-
event-type: staging-tests
121-
client-payload: '{"versionOrTag": "${{ steps.get-version.outputs.STAGING_VERSION }}"}'
116+
# Trigger e2e-test.yml
117+
run: |
118+
OSS_BOT_GITHUB_TOKEN=${{ secrets.OSS_BOT_GITHUB_TOKEN }}
119+
VERSION_OR_TAG=${{ steps.get-version.outputs.STAGING_VERSION }}
120+
curl -X POST \
121+
-H "Content-Type:application/json" \
122+
-H "Accept:application/vnd.github.v3+json" \
123+
-H "Authorization:Bearer $OSS_BOT_GITHUB_TOKEN" \
124+
-d "{\"event_type\":\"staging-tests\", \"client_payload\":{\"versionOrTag\":\"$VERSION_OR_TAG\"}}" \
125+
https://api.github.com/repos/firebase/firebase-js-sdk/dispatches
122126
- name: Log to release tracker
123127
# Sends release information to cloud functions endpoint of release tracker.
124128
run: |

0 commit comments

Comments
 (0)