Update to K2 #847
Workflow file for this run
This file contains 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: "Update Baseline Profiles" | |
on: | |
workflow_dispatch: | |
# Always run on PRs if this file was modified! We won't PR changes if we modify the file though | |
pull_request: | |
paths: | |
- '.github/workflows/update-baseline-profiles.yml' | |
- 'gradle/libs.versions.toml' | |
concurrency: | |
group: 'ci-${{ github.event.merge_group.head_ref || github.head_ref }}-${{ github.workflow }}' | |
cancel-in-progress: true | |
jobs: | |
update-baseline-profiles: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
lfs: 'true' | |
- name: Install JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
- name: Enable KVM group perms | |
run: | | |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
sudo udevadm control --reload-rules | |
sudo udevadm trigger --name-match=kvm | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Generate baseline profiles | |
run: ./scripts/update-baseline-profiles.sh | |
- name: Upload build reports | |
uses: actions/upload-artifact@v4 | |
with: | |
name: reports | |
path: | | |
**/build/reports/** | |
**/generated/baselineProfiles/** | |
- name: Create Pull Request | |
if: github.event_name == 'workflow_dispatch' | |
id: createpr | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.SLACKHQ_MBR_GITHUB_TOKEN }} | |
commit-message: 'Update baseline profiles' | |
committer: OSS-Bot <[email protected]> | |
author: OSS-Bot <[email protected]> | |
title: 'Update baseline profiles' | |
body: 'Updates baseline profiles' | |
reviewers: ${{ github.actor }} | |
branch-suffix: timestamp | |
branch: bot/update-baseline-profiles |