From e52d71a2c0158906b238be310333d9d87581ed06 Mon Sep 17 00:00:00 2001 From: minneelyyyy Date: Mon, 14 Oct 2024 20:49:35 -0400 Subject: [PATCH] add a hook to update the bot when lamm is updated --- .github/workflows/notify-bot-updated.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/notify-bot-updated.yml diff --git a/.github/workflows/notify-bot-updated.yml b/.github/workflows/notify-bot-updated.yml new file mode 100644 index 0000000..7504dc3 --- /dev/null +++ b/.github/workflows/notify-bot-updated.yml @@ -0,0 +1,19 @@ +name: Trigger Bot Build + +on: + push: + branches: + - dev + +jobs: + trigger-bot-build: + runs-on: ubuntu-latest + steps: + - name: Send repository dispatch + env: + GITHUB_TOKEN: ${{ secrets.LAMM_TOKEN }} + run: | + curl -X POST -H "Accept: application/vnd.github.everest-preview+json" \ + -H "Authorization: token $GITHUB_TOKEN" \ + https://api.github.com/repos/minneelyyyy/bot/dispatches \ + -d '{"event_type": "lamm-updated"}'