diff --git a/.github/workflows/thrift-dev.yml b/.github/workflows/thrift-dev.yml new file mode 100644 index 0000000..0b82d22 --- /dev/null +++ b/.github/workflows/thrift-dev.yml @@ -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 diff --git a/.github/workflows/thrift-main.yml b/.github/workflows/thrift-main.yml new file mode 100644 index 0000000..4dcb0a1 --- /dev/null +++ b/.github/workflows/thrift-main.yml @@ -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