9 - '.github/workflows/changelogs.yml'
13 - '.github/workflows/changelogs.yml'
25 runs-on: ubuntu-latest
29 # https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#adding-a-system-path
31 echo "$HOME/.cabal/bin" >> $GITHUB_PATH
32 - uses: actions/cache@v3
35 key: linux-store-changelogs
36 # See https://github.com/haskell/cabal/pull/8739
37 - name: Sudo chmod to permit ghcup to update its cache
39 if [[ "${{ runner.os }}" == "Linux" ]]; then
40 sudo mkdir -p /usr/local/.ghcup/cache
41 sudo chown -R $USER /usr/local/.ghcup
42 sudo chmod -R 777 /usr/local/.ghcup
46 ghcup config set cache true
47 ghcup install ghc recommended
48 ghcup set ghc recommended
49 - name: Update Hackage index
51 # Cannot install it from tarball due to
52 # https://github.com/haskell/cabal/issues/7360
53 - uses: actions/checkout@v3
55 repository: "fgaz/changelog-d"
57 - name: Install changelog-d
62 - uses: actions/checkout@v3
63 - name: Run changelog-d
65 changelog-d changelog.d