Skip to content

Update client-core-dispatch.yml #7

Update client-core-dispatch.yml

Update client-core-dispatch.yml #7

name: Trigger Main Repo Build
on:
push:
branches:
# - newPublishPipeline
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger client core repo workflow
run: |
curl -d "{\"event_type\": \"android_repo_push\"}" -H "Content-Type: application/json" -H "Authorization: token ${AUTORELEASE_PAT}" -H "Accept: application/vnd.github.everest-preview+json" "https://api.github.com/repos/juspay/hyperswitch-client-core/dispatches"
env:
AUTORELEASE_PAT: ${{ secrets.AUTORELEASE_PAT }}
# curl -X POST \
# -H "Authorization: token ${{ secrets.AUTORELEASE_PAT }}" \
# -H "Accept: application/vnd.github.v3+json" \
# https://api.github.com/repos/juspay/hyperswitch-client-core/dispatches \
# -d '{"event_type":"android_repo_push"}'
# name: Trigger Client Core Build
# on:
# push:
# branches:
# - newPublishPipeline
# jobs:
# trigger:
# runs-on: ubuntu-latest
# steps:
# - name: Trigger client core repo workflow
# run: |
# curl -X POST \
# -H "Authorization: token ${{ secrets.AUTORELEASE_PAT }}" \
# -H "Accept: application/vnd.github.v3+json" \
# https://api.github.com/repos/juspay/hyperswitch-client-core/dispatches \
# -d '{"event_type":"android_repo_push","client_payload":{"repository":"${{ github.repository }}","ref":"${{ github.ref }}","sha":"${{ github.sha }}"}}'