action.yaml 705 B

12345678910111213141516171819202122232425262728293031
  1. name: "validate-pr-description"
  2. runs:
  3. using: "composite"
  4. steps:
  5. - name: Save PR body to temporary file
  6. shell: bash
  7. run: |
  8. echo "${{ inputs.pr_body }}" > pr_body.txt
  9. - name: Run validation script
  10. id: validate
  11. shell: bash
  12. env:
  13. GITHUB_TOKEN: ${{ github.token }}
  14. run: |
  15. python3 -m pip install PyGithub
  16. python3 ${{ github.action_path }}/validate_pr_description.py pr_body.txt
  17. inputs:
  18. pr_body:
  19. description: "The body of the pull request."
  20. required: true
  21. outputs:
  22. status:
  23. description: "The status of the PR description validation."
  24. value: ${{ steps.validate.outcome }}
  25. files:
  26. - validate_pr_description.py