update_vim_docs.yaml 1012 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: "Update vim docs"
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths:
  7. - 'README.md'
  8. workflow_dispatch:
  9. jobs:
  10. update-vim-docs:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: 'Update local repo'
  15. run: './update-vim-docs'
  16. - name: 'Check diffs'
  17. run: 'git diff'
  18. - name: 'Create pull request'
  19. uses: peter-evans/create-pull-request@v4
  20. id: cpr
  21. with:
  22. token: ${{ secrets.VIMSPECTOR_UPDATE_BOT_PAT }}
  23. push-to-fork: VimspectorUpdateBot/YouCompleteMe
  24. commit-message: "Update vim docs"
  25. branch: 'auto/update-vim-docs'
  26. delete-branch: true
  27. title: "[Auto] Update vim docs"
  28. body: "Update the vim docs after recent changes"
  29. labels: "auto"
  30. - name: Check outputs
  31. run: |
  32. echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
  33. echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"