Skip to content

Merge pull request #117 from intersystems-community/master #164

Merge pull request #117 from intersystems-community/master

Merge pull request #117 from intersystems-community/master #164

# This workflow triggers deployment workflow in 'zpm-registry-deployment' repo
# It was decided to separate them
name: Trigger ZPM deployment
on:
push:
branches:
- master
- stage
release:
types:
- published
jobs:
trigger-zpm-deployment:
name: Trigger zpm-registry-deployment via REST API
runs-on: ubuntu-22.04
steps:
- name: REST POST call
run: |-
curl -X POST https://api.github.com/repos/intersystems-community/zpm-registry-deployment/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
--user ${{ secrets.PAT_USERNAME }}:${{ secrets.PAT }} \
--data "{\"event_type\": \"${{ github.event_name }}\", \"client_payload\": { \"zpm_ref_orig\": \"${GITHUB_REF##*/}\", \"zpm_commit_sha_orig\": \"$GITHUB_SHA\" }}"