action.yml 863 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: rightlib sync
  2. description: Automatically sync rightlib branch into main
  3. inputs:
  4. command:
  5. required: true
  6. description: "create-pr or check-pr"
  7. repository:
  8. required: true
  9. description: "token for access GitHub"
  10. gh_personal_access_token:
  11. required: true
  12. description: "token for access GitHub"
  13. runs:
  14. using: "composite"
  15. steps:
  16. - name: install packages
  17. shell: bash
  18. run: |
  19. pip install PyGithub==2.5.0
  20. - name: configure
  21. shell: bash
  22. run: |
  23. git config --global user.email "alex@ydb.tech"
  24. git config --global user.name "Alexander Smirnov"
  25. - name: run-command
  26. shell: bash
  27. env:
  28. REPO: ${{ inputs.repository }}
  29. TOKEN: ${{ inputs.gh_personal_access_token }}
  30. run: |
  31. cd ./ydb/ci/rightlib
  32. ./sync-rightlib.py "${{ inputs.command }}"