Skip to content

build(deps): Bump org.assertj:assertj-core from 3.27.3 to 3.27.4 #426

build(deps): Bump org.assertj:assertj-core from 3.27.3 to 3.27.4

build(deps): Bump org.assertj:assertj-core from 3.27.3 to 3.27.4 #426

Workflow file for this run

name: Check commits
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
permissions: { }
jobs:
# See .github/workflows/CheckBadMerge.groovy for explanation
check_bad_merge:
if: github.event.pull_request.base.ref == 'master'
permissions:
contents: read
issues: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Install Groovy
run: sudo apt-get install groovy
- name: List PR commits
run: |
git log --pretty=format:"%H" ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} > pr_commits.txt
- name: Check PR commits
id: run_check
run: |
groovy .github/workflows/CheckBadMerge.groovy pr_commits.txt > output.txt 2>&1
- name: Read output file
id: read_output
if: ${{ always() }}
run: |
cat output.txt
OUTPUT=$(cat output.txt)
echo "OUTPUT<<EOF" >> $GITHUB_ENV
echo "$OUTPUT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Comment on PR if check failed
if: ${{ failure() }}
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const output = `
Some bad merge is found:
\`\`\`
${{ env.OUTPUT }}
\`\`\`
`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})