Skip to content

Record Snapshots

Record Snapshots #30

name: Record Snapshots
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
record_snapshots:
name: Record Snapshots
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: 'true'
submodules: 'true'
- name: Cache Maven
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ github.sha }}
restore-keys: |
${{ runner.os }}-maven-
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version-file: ".java-version"
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Record snapshots
run: ./gradlew cleanRecordPaparazzi --scan
- name: Commit snapshots
run: |
git config --global user.name '${{ github.actor }}'
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
git add .
git commit -am "Record updated snapshots" || echo "No changed snapshots"
git push