Skip to content

chore: Fix Javadoc warnings in spec/ module #400

chore: Fix Javadoc warnings in spec/ module

chore: Fix Javadoc warnings in spec/ module #400

name: Build with '-Prelease' (Trigger)
# Trigger workflow for release profile build verification.
# This workflow runs on PRs and uploads the PR info for the workflow_run job.
# The actual build with secrets happens in build-with-release-profile-run.yml
# See: https://securitylab.github.com/research/github-actions-preventing-pwn-requests
on:
pull_request: # Changed from pull_request_target for security
push:
workflow_dispatch:
# Only run the latest job
concurrency:
group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
trigger:
# Only run this job for the main repository, not for forks
if: github.repository == 'a2aproject/a2a-java'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Prepare PR info
run: |
mkdir -p pr_info
# Store PR number for workflow_run job
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo ${{ github.event.number }} > pr_info/pr_number
echo ${{ github.event.pull_request.head.sha }} > pr_info/pr_sha
echo ${{ github.event.pull_request.head.ref }} > pr_info/pr_ref
else
# For push events, store the commit sha
echo ${{ github.sha }} > pr_info/pr_sha
echo ${{ github.ref }} > pr_info/pr_ref
fi
echo "Event: ${{ github.event_name }}"
cat pr_info/*
- name: Upload PR info
uses: actions/upload-artifact@v4
with:
name: pr-info
path: pr_info/
retention-days: 1