Combine TOS acceptance and publication in a single workflow #4
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: TEST - Publish Maven Build Scan | |
on: | |
pull_request: | |
jobs: | |
create-and-save-build-scans: | |
name: Create and Save Build Scans | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout current repository | |
uses: actions/checkout@v4 | |
- name: Checkout Maven sample project | |
uses: actions/checkout@v4 | |
with: | |
repository: 'gradle/gradle-enterprise-build-config-samples' | |
path: 'sample' | |
ref: 'main' | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
- name: Run Maven Build | |
working-directory: ./sample/common-gradle-enterprise-maven-configuration | |
run: mvn clean -B | |
- name: Save Maven Build Scan | |
uses: ./maven-build-scan/save | |
publish-build-scan: | |
name: Verify Saved Build Scans | |
needs: create-and-save-build-scans | |
runs-on: ubuntu-latest | |
steps: | |
- name: Publish Maven Build Scans | |
uses: ./maven-build-scan/publish | |
with: | |
develocity-url: 'https://foo.bar' | |
develocity-access-key: 'foo' | |
pr-number: ${{ github.event.number }} |