update_documentation.yml 545 B

1234567891011121314151617181920
  1. name: Update documentation
  2. on:
  3. push:
  4. paths:
  5. - docs/**
  6. jobs:
  7. trigger:
  8. runs-on: ubuntu-latest
  9. name: Dispatch event to documentation repository
  10. if: github.ref == 'refs/heads/main'
  11. steps:
  12. - uses: peter-evans/repository-dispatch@v3
  13. with:
  14. token: ${{ secrets.DOCUMENTATION_REPO_ACCESS_TOKEN }}
  15. repository: revanced/revanced-documentation
  16. event-type: update-documentation
  17. client-payload: '{"repo": "${{ github.event.repository.name }}", "ref": "${{ github.ref }}"}'