cleanup unuse directory & added extra direction for devdocs contribut… #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync Welcome Documentation - Branches | |
on: | |
push: | |
paths: | |
- '**/documentation/**.md' | |
- '**/documentation/config.json' | |
branches-ignore: | |
- 'master' | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Fetch branch name | |
run: echo Running on branch ${GITHUB_REF#refs/heads/} | |
- name: Sync repository | |
run: | | |
curl \ | |
-X POST \ | |
-u "${{ secrets.SYNC_USERNAME }}:${{ secrets.SYNC_TOKEN }}" \ | |
-H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${{ secrets.SYNC_ORGANIZATION }}/${{ secrets.SYNC_APPLICATION }}/dispatches \ | |
-d '{"event_type":"sync-welcome-documentation", "client_payload": { "branch": "'"${GITHUB_REF#refs/heads/}"'" }}' |