Skip to content

Merge Patch

Merge Patch #5

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Merge Patch
on:
merge_group:
types: [checks_requested]
jobs:
validate-patch:
runs-on: ubuntu-latest
steps:
- name: Env
run: printenv
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Git Info
env:
BASE_SHA: ${{ github.merge_group.base_sha }}
run: |
echo "Status"
git status
echo "Log"
git log HEAD..$BASE_SHA
git log --oneline | head -n 100
echo "Amend"
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git commit --amend --no-edit --trailer "Reviewer: David Arthur <mumrah@gmail>"
- name: Setup Python
uses: ./.github/actions/setup-python
- name: Setup Gradle
uses: ./.github/actions/setup-gradle
with:
java-version: 23
gradle-cache-read-only: true
gradle-cache-write-only: false
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}