Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: ci

on:
pull_request:
workflow_dispatch:
push:
branches:
- main
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
workflow_dispatch:

permissions:
actions: write
contents: write
issues: write
pull-requests: write
Expand All @@ -32,6 +33,36 @@ jobs:
manifest-file: .release-please-manifest.json
target-branch: main

- name: Dispatch CI for Release Please PRs
if: ${{ steps.release.outputs.prs_created == 'true' }}
env:
GH_TOKEN: ${{ github.token }}
PRS_JSON: ${{ steps.release.outputs.prs }}
REPO: ${{ github.repository }}
run: |
set -euo pipefail
branches_file="$RUNNER_TEMP/release-pr-branches.txt"
python3 - <<'PY' > "$branches_file"
import json
import os

prs = json.loads(os.environ.get("PRS_JSON") or "[]")
for pr in prs:
branch = pr.get("headBranchName")
if branch:
print(branch)
PY

if [[ ! -s "$branches_file" ]]; then
echo "::error::Release Please reported PRs but did not expose any headBranchName values."
exit 1
fi

while IFS= read -r branch; do
echo "Dispatching ci.yml for $branch"
gh workflow run ci.yml --repo "$REPO" --ref "$branch"
done < "$branches_file"

package-release:
name: package release
needs: release-please
Expand Down
6 changes: 4 additions & 2 deletions docs/release-update-channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ non-Conventional titles are invisible to Release Please. Use titles such as
For bot-created release PR branches to trigger normal PR checks, configure the
optional `AGENTD_RELEASE_TOKEN` secret with a fine-grained token that can push
branches and open pull requests in this repository. Without it, Release Please
falls back to `GITHUB_TOKEN`; that can still update GitHub state, but events
created by `GITHUB_TOKEN` may not start follow-on workflows.
falls back to `GITHUB_TOKEN`; in that mode `release-please` explicitly
dispatches `ci.yml` for the generated release PR branch because
`workflow_dispatch` is the GitHub-supported exception for workflows triggered
with `GITHUB_TOKEN`.

For local appcast fixture testing without notarization, set
`AGENTD_SPARKLE_ALLOW_UNNOTARIZED=1`; do not use that override in release
Expand Down