-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatic update BE QA client on new release
Signed-off-by: Federico Guerinoni <[email protected]>
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Update BE QA version | ||
on: | ||
push: | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: GetStream/chat | ||
path: chat | ||
token: ${{ secrets.STREAM_CI_BOT_TOKEN }} | ||
ref: main | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
cache: 'yarn' | ||
- name: Open PR | ||
run: | | ||
cd chat | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GH Action CI Stream" | ||
git switch -c update-qa-version-${{ github.ref }} | ||
cd qa | ||
yarn add @stream-io/video-client | ||
cd .. | ||
git add . | ||
git commit -m "Update QA version to ${{ github.ref }}" | ||
git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD) --force-with-lease | ||
gh pr create --fill | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.STREAM_CI_BOT_TOKEN }} |