mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00

* Add support for towncrier * Use correct command * Compare properly * Work within the correct directory * Try main * Try a fetch-depth of 0 * changelog * Fix default config * Update sample
21 lines
466 B
YAML
21 lines
466 B
YAML
name: Newsfile
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ main ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
changelog:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with: # Needed for comparison
|
|
fetch-depth: 0
|
|
- uses: actions/setup-python@v1
|
|
with:
|
|
python-version: '3.9'
|
|
- run: pip install towncrier==19.2.0
|
|
- name: ":newspaper: Newsfile"
|
|
run: python3 -m towncrier.check --compare-with=origin/main
|