Skip to content

Commit 357ad6f

Browse files
committed
Refactor
1 parent 71dc0af commit 357ad6f

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.github/workflows/check-release-notes-scripts.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Similar to check-release-notes.yml, but verifies that check-release-notes-reusable.yml itself.
22
# Runs not against rules/scripts in the main branch but against the PR branch
33

4-
name: Check "check-release-notes.yml" action ans scripts
4+
name: Check "check-release-notes" action ans scripts
55
on:
66
pull_request:
77
types: [opened, edited, synchronize]
8+
# we run against PR branch if workflow/scripts are changed (to check changes)
9+
# and against master branch otherwise (to apply up-to-date rules)
10+
#
11+
# paths should be the same as in [check-release-notes.yml]
812
paths:
913
- '.github/workflows/check-release-notes-reusable.yml'
1014
- '.github/workflows/check-release-notes-reusable-check.yml'

.github/workflows/check-release-notes.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,19 @@ name: Check Release Notes in the description
88
on:
99
pull_request:
1010
types: [opened, edited, synchronize]
11+
# we run against PR branch if workflow/scripts are changed (to check changes)
12+
# and against master branch otherwise (to apply up-to-date rules)
13+
#
14+
# paths should be the same as in [check-release-notes-scripts.yml]
15+
paths-ignore:
16+
- '.github/workflows/check-release-notes-reusable.yml'
17+
- '.github/workflows/check-release-notes-reusable-check.yml'
18+
- 'changelog.main.kts'
1119

1220
jobs:
1321
check:
1422
runs-on: ubuntu-24.04
1523
steps:
16-
- uses: JetBrains/compose-multiplatform/.github/actions/check-release-notes@igordmn-patch-7
24+
- uses: JetBrains/compose-multiplatform/tools/changelog/check-release-notes@master
1725
with:
18-
checkout_ref: 'igordmn-patch-7'
26+
checkout_ref: 'master'

.github/actions/check-release-notes/action.yml renamed to tools/changelog/check-release-notes/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ runs:
2020
- name: Check Release Notes in the description
2121
shell: bash
2222
run: |
23-
cd tools
23+
cd tools/changelog
2424
kotlin changelog.main.kts action=checkPr ${{ github.repository }} ${{ github.event.number }} token=""

0 commit comments

Comments
 (0)