DocSpace-buildtools/.github/workflows/config-build.yml
Valeria Bagisheva 192dc275f8
Trigger action (#28)
* Add  cron-triggered build

* Add build triggered on file changes in the "config" folder

* Add schedule to the cron workflow

* Fix end line

* Fix space

* Remove REPO_NAME env

* Add client  and server repository dispatch type

* Fix paths

* Fix the space

* Delete space

* Return space

* Return space

* Replace space

* Replace space
2023-11-08 15:27:37 +03:00

33 lines
802 B
YAML

name: 4testing multiarch-config-build
on:
push:
branches:
- 'hotfix/v*'
- 'release/v*'
- 'develop'
paths:
- 'config/**'
- 'install/docker/Dockerfile.app'
workflow_dispatch:
jobs:
select-branches:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v2
- name: Dispatch Action
run: |
echo "${GITHUB_REF_NAME}"
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": "config-trigger-action", "client_payload": { "branches": ["'"${GITHUB_REF_NAME}"'"]}}'