action.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # action.yml
  2. name: 'Zulip Archive'
  3. description: 'Publish Zulip archive in GitHub pages'
  4. inputs:
  5. zulip_organization_url:
  6. description: 'URL of Zulip organization'
  7. required: true
  8. zulip_bot_email:
  9. description: 'Email of the Zulip bot'
  10. required: true
  11. zulip_bot_key:
  12. description: 'API key of the Zulip bot'
  13. required: true
  14. github_personal_access_token:
  15. description: 'GitHub personal access token'
  16. required: true
  17. delete_history:
  18. description: 'If enabled, will delete the archive history while keeping the most recent version'
  19. required: false
  20. default: false
  21. archive_branch:
  22. description: 'Branch where to commit archive files (should coincide with GH Pages branch)'
  23. # legacy
  24. required: false
  25. default: 'master'
  26. runs:
  27. using: 'docker'
  28. image: 'Dockerfile'
  29. args:
  30. - ${{ inputs.zulip_organization_url }}
  31. - ${{ inputs.zulip_bot_email }}
  32. - ${{ inputs.zulip_bot_key }}
  33. - ${{ inputs.github_personal_access_token }}
  34. - ${{ inputs.delete_history }}
  35. - ${{ inputs.archive_branch }}