-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (50 loc) · 1.88 KB
/
changelog-ci.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
58
59
60
61
# name: Changelog CI
# on:
# pull_request:
# types: [ opened ]
# # Optionally you can use `workflow_dispatch` to run Changelog CI Manually
# workflow_dispatch:
# inputs:
# release_version:
# description: 'Set Release Version'
# required: true
# jobs:
# build:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# pages: write
# steps:
# # Checks-out your repository
# - uses: actions/checkout@v4
# - name: Run Changelog CI
# uses: saadmk11/changelog-ci@v1.1.2
# with:
# # Optional, you can provide any name for your changelog file,
# # We currently support Markdown (.md) and reStructuredText (.rst) files
# # defaults to `CHANGELOG.md` if not provided.
# changelog_filename: CHANGELOG.md
# # Optional, only required when you want more customization
# # e.g: group your changelog by labels with custom titles,
# # different version prefix, pull request title and version number regex etc.
# # config file can be in JSON or YAML format.
# config_file: changelog-ci-config.json
# # Optional, only required when you want to run Changelog CI
# # on an event other than `pull_request` event.
# # In this example `release_version` is fetched from `workflow_dispatch` events input.
# # You can use any other method to fetch the release version
# # such as environment variable or from output of another action
# # release_version: ${{ github.event.inputs.release_version }}
# # Optional
# github_token: ${{ secrets.GITHUB_TOKEN }}
name: Changelog CI
on:
pull_request:
types: [ opened ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Changelog CI
uses: saadmk11/changelog-ci@v1.1.2