-
Notifications
You must be signed in to change notification settings - Fork 12
28 lines (24 loc) · 1.06 KB
/
changelog.yaml
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
# This workflow will run on every pull request to the develop branch to do the following:
#
# - Insert the Pull Request URL into new changelog entries.
# - Assert that a new changelog entry has been added in the PR unless a "no changelog" label is added to the PR.
name: "Changelog"
on:
pull_request_target: { branches: [ "*" ] }
jobs:
# changelog-update:
# name: "Insert Pull Request URL into new changelog entries"
# runs-on: ubuntu-latest
# if: github.event_name == 'pull_request_target'
# steps:
# - uses: actions/checkout@v3
# - uses: NiklasRosenstein/slap@gha/changelog/update/v2
# with: { pr-id: '${{ github.event.pull_request.number }}' }
assert-new-changelog-entries:
name: "At least one new changelog entry must be added"
runs-on: ubuntu-latest
if: github.base_ref != '' && !contains(github.event.pull_request.labels.*.name, 'no changelog')
steps:
- uses: actions/checkout@v4
- uses: NiklasRosenstein/slap@gha/changelog/assert-added/v2
with: { pr-id: '${{ github.event.pull_request.number }}' }