Skip to content

Commit 1f04e0c

Browse files
committed
Refactor
1 parent ea13843 commit 1f04e0c

File tree

4 files changed

+35
-33
lines changed

4 files changed

+35
-33
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Reusable GitHub action needed to check Release Notes in the PR description. Used by multiple Compose repositories.
2+
#
3+
# Runs from master branch by default to apply the latest Release Notes rules.
4+
5+
name: Check Release Notes in the description
6+
7+
inputs:
8+
checkout_ref:
9+
type: string
10+
default: 'master'
11+
12+
runs:
13+
using: "composite"
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
name: JetBrains/compose-multiplatform
18+
ref: ${{ inputs.checkout_ref }}
19+
sparse-checkout: 'tools'
20+
- name: Check Release Notes in the description
21+
shell: bash
22+
run: |
23+
cd tools
24+
kotlin changelog.main.kts action=checkPr ${{ github.repository }} ${{ github.event.number }} token=""

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

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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-reusable.yml" workflow
4+
name: Check "check-release-notes.yml" action ans scripts
55
on:
66
pull_request:
77
types: [opened, edited, synchronize]
@@ -12,6 +12,8 @@ on:
1212

1313
jobs:
1414
check:
15-
uses: .github/workflows/check-release-notes-reusable.yml
16-
with:
17-
checkout_ref: '$GITHUB_REF'
15+
runs-on: ubuntu-24.04
16+
steps:
17+
- uses: JetBrains/compose-multiplatform/.github/actions/check-release-notes.yml
18+
with:
19+
checkout_ref: '$GITHUB_REF'

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111

1212
jobs:
1313
check:
14-
uses: JetBrains/compose-multiplatform/.github/workflows/check-release-notes-reusable.yml@igordmn-patch-7
15-
with:
16-
checkout_ref: 'igordmn-patch-7'
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- uses: JetBrains/compose-multiplatform/.github/actions/check-release-notes.yml@igordmn-patch-7
17+
with:
18+
checkout_ref: 'igordmn-patch-7'

0 commit comments

Comments
 (0)