Check Release Notes GitHub workflow #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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="" |