-
Notifications
You must be signed in to change notification settings - Fork 697
57 lines (53 loc) · 1.33 KB
/
changelogs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Assorted
on:
push:
branches:
- master
paths:
- 'changelog.d/*'
- '.github/workflows/changelogs.yml'
pull_request:
paths:
- 'changelog.d/*'
- '.github/workflows/changelogs.yml'
release:
types:
- created
defaults:
run:
shell: bash
jobs:
build:
name: Changelogs
runs-on: ubuntu-latest
steps:
- name: Set PATH
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#adding-a-system-path
run: |
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
- uses: actions/cache@v1
with:
path: ~/.cabal/store
key: linux-store-changelogs
- name: ghcup
run: |
ghcup config set cache true
ghcup install ghc recommended
ghcup set ghc recommended
- name: Update Hackage index
run: cabal v2-update
# Cannot install it from tarball due to
# https://github.com/haskell/cabal/issues/7360
- uses: actions/checkout@v3
with:
repository: "fgaz/changelog-d"
path: "changelog-d"
- name: Install changelog-d
run: |
pushd changelog-d
cabal v2-install
popd
- uses: actions/checkout@v3
- name: Run changelog-d
run: |
changelog-d changelog.d