Skip to content

Commit

Permalink
[ci] used repository_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
pattacini committed Jul 2, 2020
1 parent 5829772 commit a50463e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/trigger-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
token: ${{ secrets.BOT_TRIGGER_ROBOTOLOGY_DOCUMENTATION }}
repository: robotology/robotology-documentation
event-type: build_documentation
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

0 comments on commit a50463e

Please sign in to comment.