mirror of https://github.com/zachjs/sv2v.git
25 lines
513 B
YAML
25 lines
513 B
YAML
name: Notice
|
|
on:
|
|
push:
|
|
paths:
|
|
- stack.yaml
|
|
- stack.yaml.lock
|
|
- sv2v.cabal
|
|
- notice.sh
|
|
- NOTICE
|
|
jobs:
|
|
notice:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: mstksg/setup-stack@v2
|
|
- name: Regenerate NOTICE
|
|
run: ./notice.sh > NOTICE
|
|
- name: Validate NOTICE
|
|
run: |
|
|
if [ -n "`git status --porcelain`" ]; then
|
|
echo "Notice differs!"
|
|
PAGER= git diff
|
|
exit 1
|
|
fi
|