|
| 1 | +name:Changelog Log |
| 2 | + |
| 3 | +on: |
| 4 | +push: |
| 5 | +branches:[main] |
| 6 | +paths: |
| 7 | + -"**/CHANGELOG*.md" |
| 8 | + -"**/changelog*.md" |
| 9 | + |
| 10 | +jobs: |
| 11 | +notify: |
| 12 | +runs-on:ubuntu-latest |
| 13 | +steps: |
| 14 | + -name:Checkout |
| 15 | +uses:actions/checkout@v4 |
| 16 | +with: |
| 17 | +fetch-depth:0 |
| 18 | + |
| 19 | + -name:Send changelog to webhook |
| 20 | +uses:lukeocodes/changelog-log@changelog-log-v0.1.6 |
| 21 | +with: |
| 22 | +webhook_url:${{ secrets.CHANGELOG_WEBHOOK_URL }} |
| 23 | +webhook_headers_json:'{"Content-Type":"application/json","X-DX-Logs-Key":"${{ secrets.CHANGELOG_SECRET }}"}' |
| 24 | +extra_body_json:'{"route":"changelog-python"}' |
| 25 | +# Project context is automatically inferred from GitHub context |
| 26 | +# You can override with: |
| 27 | +# project_name: "my-custom-project-name" |
| 28 | +# project_owner: "my-org" |
| 29 | +# repository_url: "https://github.com/owner/repo" |
| 30 | +# include_github_context: "true" # includes ref, workflow, actor info |
| 31 | +# |
| 32 | +# Other optional overrides: |
| 33 | +# file_globs: "CHANGELOG.md,**/CHANGELOG*.md" |
| 34 | +# entry_separator_regex: "^##\\s+.*$" |
| 35 | +# http_method: "POST" |
| 36 | +# include_body_raw: "false" |
| 37 | +# log_level: "warn" # trace, debug, info, warn, error, fatal |
| 38 | +# extra_body_json: '{"custom":"field"}' # merge custom fields into payload |