hookshot/.github/workflows/newsfile.yml
Will Hunt 8bdf789553
Add towncrier (#96)
* 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
2021-12-13 13:10:36 +00:00

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