Skip to content

Commit

Permalink
editing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NourAlharithi committed Sep 8, 2023
1 parent f7d78b7 commit b2eaa06
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy-on-sdk-update.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy on sdk update
on:
repository_dispatch:
types: [sdk-update]
types: [jit-sdk-update]

jobs:
update-sdk:
Expand All @@ -20,13 +20,15 @@ jobs:
run: yarn install

- name: Add specific version of sdk
run: yarn add @drift-labs/sdk@${{ github.event.client_payload.version }}
run: yarn add @drift-labs/sdk@${{ github.event.client_payload.sdk-version }}

- name: Add specific version of jit sdk
run: yarn add @drift-labs/jit-proxy@${{ github.event.client_payload.jit-version }}

- name: Commit and push changes
run: |
git config user.name "GitHub Actions"
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add -A
git commit --allow-empty -m "Bumping sdk dependency to version ${{ github.event.client_payload.version }}"
git push
git commit --allow-empty -m "Bumping sdk and jit dependencies to ${{ github.event.client_payload.sdk-version }} and ${{ github.event.client_payload.jit-version }}"
git push

0 comments on commit b2eaa06

Please sign in to comment.