forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 977 Bytes
/
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
name: Changelogs
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: Install changelog-d
run: |
curl --create-dirs -o "$HOME/.local/bin/changelog-d" -sS --fail \
"https://codeberg.org/fgaz/changelog-d/releases/download/v1.0.1/changelog-d-v1.0.1-x86_64-linux"
chmod +x "$HOME/.local/bin/changelog-d"
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Checkout cabal sources
uses: actions/checkout@v4
- name: Run changelog-d
run: |
changelog-d changelog.d