DocSpace-client/.github/workflows/trigger-action.yml
Valeria Bagisheva 10b5f0ff9c
Add trigger action (#60)
* Add trigger action

* Add  'hotfix/v*' and 'release/v*' branches

* Add branch as a payload

* Delete  extra lines
2023-11-22 18:12:45 +03:00

23 lines
563 B
YAML

name: Trigger action
on:
push:
branches:
- 'hotfix/v*'
- 'release/v*'
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Dispatch Action
run: |
curl \
-X POST \
-u "${{ secrets.USERNAME}}:${{secrets.TOKEN}}" \
"https://api.github.com/repos/ONLYOFFICE/DocSpace-buildtools/dispatches" \
-H "Accept: application/vnd.github.everest-preview+json" \
--data '{"event_type": "client-trigger-action", "client_payload": { "branches": ["'"${GITHUB_REF_NAME}"'"]}}'