Skip to content

reaper: Output build data #1369

reaper: Output build data

reaper: Output build data #1369

name: snapshots sample app
on:
# Intentionally run on all pushes to main branch to ensure we always have a base build with snapshots
push:
branches: [ main ]
pull_request:
paths:
- gradle/**
- gradle-plugin/**
- snapshots/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Emerge snapshots
run: ./gradlew :snapshots:sample:app:emergeUploadSnapshotBundleDebug
env:
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }}
PR_SHA: ${{ github.event.pull_request.head.sha }}
PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}