Run map file analyser through repository dispatch (#2148)

* Add ripository dispatch
* Fix mistakes
This commit is contained in:
Max Andreev
2022-12-19 18:28:53 +03:00
committed by GitHub
parent 36e15a1352
commit 5d18b189ec
2 changed files with 12 additions and 36 deletions

View File

@@ -98,6 +98,14 @@ jobs:
artifacts/ ${{ secrets.RSYNC_DEPLOY_USER }}@${{ secrets.RSYNC_DEPLOY_HOST }}:"${{ secrets.RSYNC_DEPLOY_BASE_PATH }}${BRANCH_NAME}/";
rm ./deploy_key;
- name: 'Trigger map file analyser'
if: ${{ !github.event.pull_request.head.repo.fork }}
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: make_map_analyse
client-payload: '{"branch_name": "${{steps.names.outputs.branch_name}}"}'
- name: 'Trigger update server reindex'
if: ${{ !github.event.pull_request.head.repo.fork }}
run: curl -X POST -F 'key=${{ secrets.REINDEX_KEY }}' ${{ secrets.REINDEX_URL }}