api-docs.yml 790 B

12345678910111213141516171819202122232425262728293031
  1. ---
  2. name: 'api-docs-deploy'
  3. on:
  4. push:
  5. tags:
  6. - 4.*
  7. - 5.*
  8. workflow_dispatch:
  9. permissions: {}
  10. jobs:
  11. trigger-api:
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Get Cakebot App Token
  15. id: app-token
  16. uses: getsentry/action-github-app-token@v3
  17. with:
  18. app_id: ${{ secrets.CAKEBOT_APP_ID }}
  19. private_key: ${{ secrets.CAKEBOT_APP_PRIVATE_KEY }}
  20. - name: Trigger API build
  21. run: >
  22. curl -XPOST
  23. -H 'Authorization: Bearer ${{ steps.app-token.outputs.token }}'
  24. -H 'Accept: application/vnd.github.v3+json'
  25. -H 'Content-Type: application/json'
  26. https://api.github.com/repos/cakephp/cakephp-api-docs/actions/workflows/deploy_2x.yml/dispatches
  27. --data '{"ref":"2.x"}'