Merge pull request #10525 from 9999years/field-stanza-names
[cabal.git] / .github / workflows / changelogs.yml
blob388739dfb19a427f7774385bc3ed6999183998e7
1 name: Changelogs
3 on:
4   push:
5     branches:
6     - master
7     paths:
8     - 'changelog.d/*'
9     - '.github/workflows/changelogs.yml'
10   pull_request:
11     paths:
12     - 'changelog.d/*'
13     - '.github/workflows/changelogs.yml'
14   release:
15     types:
16       - created
18 defaults:
19   run:
20     shell: bash
22 jobs:
23   build:
24     name: Changelogs
25     runs-on: ubuntu-latest
27     steps:
29       - name: Install changelog-d
30         run: |
31           curl --create-dirs -o "$HOME/.local/bin/changelog-d" -sS --fail \
32             "https://codeberg.org/fgaz/changelog-d/releases/download/v1.0.1/changelog-d-v1.0.1-x86_64-linux"
33           chmod +x "$HOME/.local/bin/changelog-d"
34           # https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
35           echo "$HOME/.local/bin" >> $GITHUB_PATH
37       - name: Checkout cabal sources
38         uses: actions/checkout@v4
40       - name: Run changelog-d
41         run: |
42           changelog-d changelog.d