Skip to content

Update h2 to 2.2.224 #1961

Update h2 to 2.2.224

Update h2 to 2.2.224 #1961

name: Generate PR compat report
on:
pull_request:
branches: ['**']
jobs:
generate-report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Check out PR base
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.base.sha }}
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 11
cache: sbt
- name: Get base version
id: getBaseVer
run: sbt writeVersionToGitHubOutput
- run: sbt publishLocal
name: Publish ${{ steps.getBaseVer.outputs.result }} locally
- uses: actions/checkout@v4
name: Check out PR
with:
fetch-depth: 0
clean: false
- run: sbt clean compile
- name: Generate compatibility changes report
id: createReport
run: |
sbt \
'set every CompatReportPlugin.previousRelease := Some("${{ steps.getBaseVer.outputs.result }}")' \
writeCompatReportToGitHubOutput
- name: Show report saved in ${{ steps.createReport.outputs.result }}
run: cat ${{ steps.createReport.outputs.result }}
- name: Prepare artifact contents
run: |
mkdir -p ./compat-report
cp ${{ steps.createReport.outputs.result }} ./compat-report/compat-report.md
echo ${{ github.event.number }} > ./compat-report/NR.txt
- uses: actions/upload-artifact@v4
with:
name: compat-report
path: compat-report/