From 69f7f7d8f1e4f62bb8635411ca72b3eb1219e6d8 Mon Sep 17 00:00:00 2001 From: wphan Date: Wed, 2 Oct 2024 17:39:52 -0700 Subject: [PATCH] add dispatch receiver for drift-common update --- .../deploy-on-drift-common-update.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/deploy-on-drift-common-update.yml diff --git a/.github/workflows/deploy-on-drift-common-update.yml b/.github/workflows/deploy-on-drift-common-update.yml new file mode 100644 index 0000000..3e852f8 --- /dev/null +++ b/.github/workflows/deploy-on-drift-common-update.yml @@ -0,0 +1,22 @@ +name: Deploy on drift-common update +on: + repository_dispatch: + types: [drift-common-update] + +jobs: + update-submodules: + runs-on: ubicloud + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + submodules: 'recursive' + + - name: Bump protocol sdk + run: | + git submodule update --remote + git config user.name "GitHub Actions" + git config user.email 41898282+github-actions[bot]@users.noreply.github.com + git add drift-common + git commit --allow-empty -m "Bumping drift-common to ${{ github.event.client_payload.commit}}" + git push \ No newline at end of file