diff --git a/.github/workflows/trigger-documentation.yml b/.github/workflows/trigger-documentation.yml index 1483dd5..ec73f89 100644 --- a/.github/workflows/trigger-documentation.yml +++ b/.github/workflows/trigger-documentation.yml @@ -11,10 +11,11 @@ jobs: runs-on: ubuntu-latest steps: - - name: Webhook - uses: zzzze/webhook-trigger@master + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v1.1.1 with: - data: "{\"event_type\":\"build_documentation\",\"client_payload\":{\"repo\":\"icub-tutorials\"}}" - webhook_url: https://api.github.com/repos/robotology/robotology-documentation/dispatches - options: "-H \"Content-Type: application/json\"" - user: "robotology-bot:${{ secrets.BOT_TRIGGER_ROBOTOLOGY_DOCUMENTATION }}" \ No newline at end of file + token: ${{ secrets.BOT_TRIGGER_ROBOTOLOGY_DOCUMENTATION }} + repository: robotology/robotology-documentation + event-type: build_documentation + client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' + \ No newline at end of file