Skip to content

Check Release Notes GitHub workflow #12

Check Release Notes GitHub workflow

Check Release Notes GitHub workflow #12

Workflow file for this run

name: Check Release Notes in the description
on:
pull_request:
types: [opened, edited]
jobs:
check:
runs-on: ubuntu-24.04
steps:
# Checkout the JetBrains/compose-multiplatform default branch, not reading the current HEAD, because:
# - The latest Release Notes rules are needed even if we run on an old PR or in a release branch
# - It is used in JetBrains/compose-multiplatform-core repo
#- uses: actions/checkout@v4
# with:
# name: JetBrains/compose-multiplatform
# filter: 'tools'
- uses: actions/checkout@v4
- name: Check Release Notes in the description
shell: bash
run: |
cd tools
# https://github.com/actions/checkout/issues/58#issuecomment-2264361099
PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; /^refs\/pull/ { print $3 }')
# "token=" works, added to remove the warning
kotlin changelog.main.kts action=checkPr ${{ github.repository }} $PR_NUMBER token=""