latest-changes.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Latest Changes
  2. on:
  3. pull_request_target:
  4. branches:
  5. - master
  6. types:
  7. - closed
  8. workflow_dispatch:
  9. inputs:
  10. number:
  11. description: PR number
  12. required: true
  13. debug_enabled:
  14. description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
  15. required: false
  16. default: 'false'
  17. jobs:
  18. latest-changes:
  19. runs-on: ubuntu-latest
  20. steps:
  21. - name: Dump GitHub context
  22. env:
  23. GITHUB_CONTEXT: ${{ toJson(github) }}
  24. run: echo "$GITHUB_CONTEXT"
  25. - uses: actions/checkout@v4
  26. with:
  27. # To allow latest-changes to commit to the main branch
  28. token: ${{ secrets.FULL_STACK_FASTAPI_POSTGRESQL_LATEST_CHANGES }}
  29. - uses: docker://tiangolo/latest-changes:0.3.0
  30. # - uses: tiangolo/latest-changes@main
  31. with:
  32. token: ${{ secrets.GITHUB_TOKEN }}
  33. latest_changes_file: ./release-notes.md
  34. latest_changes_header: '## Latest Changes'
  35. end_regex: '^## '
  36. debug_logs: true
  37. label_header_prefix: '### '