Skip to content
Merged
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
7 changes: 4 additions & 3 deletions .github/workflows/update-docker-agent-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
RELEASE_URL="https://github.com/docker/docker-agent/releases/tag/$VERSION"

COMMIT_OID=$(GITHUB_TOKEN="${GH_TOKEN}" node "$GITHUB_WORKSPACE/dist/signed-commit.js" \
--repo docker/cagent-action \
--repo docker/docker-agent-action \
--branch "$BRANCH" \
--base-ref main \
--force \
Expand All @@ -124,11 +124,11 @@ jobs:
echo "✅ Signed commit: $COMMIT_OID"

# Check if a PR already exists for this branch
EXISTING_PR=$(gh pr list --head "$BRANCH" --state open --json number --jq '.[0].number')
EXISTING_PR=$(gh pr list --repo docker/docker-agent-action --head "$BRANCH" --state open --json number --jq '.[0].number')

if [ -n "$EXISTING_PR" ]; then
echo "Updating existing PR #$EXISTING_PR"
gh pr edit "$EXISTING_PR" \
gh pr edit "$EXISTING_PR" --repo docker/docker-agent-action \
--title "chore: update Docker Agent to $VERSION" \
--body "$(cat <<EOF
## Summary
Expand All @@ -141,6 +141,7 @@ jobs:
else
echo "Creating new PR"
gh pr create \
--repo docker/docker-agent-action \
--head "$BRANCH" \
--title "chore: update Docker Agent to $VERSION" \
--body "$(cat <<EOF
Expand Down
Loading