feat: Document release process in RELEASE.md #394
Workflow file for this run
This file contains hidden or 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: 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 |