Skip to content

Commit

Permalink
added triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
NiftyliuS committed Feb 10, 2024
1 parent 3abd96f commit 7fbe212
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/thrift-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: update types dev

on:
push:
branches:
- dev
paths:
- "thrift/**"

jobs:
signal-types-update:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Trigger Dispatch Event
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.TYPES_DISPATCH_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/alexandriaproject-io/alexandria-project-types/dispatches \
-d '{"event_type": "sync_types_dev", "client_payload": {"key": "value"}}'
shell: bash
24 changes: 24 additions & 0 deletions .github/workflows/thrift-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: update types main

on:
push:
branches:
- main
paths:
- "thrift/**"

jobs:
signal-types-update:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Trigger Dispatch Event
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.TYPES_DISPATCH_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/alexandriaproject-io/alexandria-project-types/dispatches \
-d '{"event_type": "sync_types_main", "client_payload": {"key": "value"}}'
shell: bash

0 comments on commit 7fbe212

Please sign in to comment.