Skip to content

Trigger repo publish workflow after build#15

Merged
polaz merged 15 commits intoswfrom
chore/trigger-repo-publish
Jan 30, 2026
Merged

Trigger repo publish workflow after build#15
polaz merged 15 commits intoswfrom
chore/trigger-repo-publish

Conversation

@polaz
Copy link
Member

@polaz polaz commented Jan 28, 2026

Moves publish responsibilities to structured-world/repo. strongswan now only builds packages, signs DEB/RPM, and triggers repo workflow via GitHub App credentials (RELEASER_APP_ID/RELEASER_APP_PRIVATE_KEY). Release creation waits for repo publish to complete.

Closes #14

Copilot AI review requested due to automatic review settings January 28, 2026 10:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the package publishing workflow by delegating publish responsibilities to the structured-world/repo repository. The strongswan repository now only builds packages and triggers the external publish workflow, rather than handling GPG signing, repository metadata creation, and git commits directly.

Changes:

  • Replaces the publish job with a lightweight trigger-repo job that calls the external publish workflow
  • Changes authentication from REPO_TOKEN to SW_RELEASE_BOT_TOKEN for both workflow triggering and release creation
  • Passes the workflow run ID to the external publish workflow for artifact retrieval

Copilot AI review requested due to automatic review settings January 28, 2026 10:59
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 24 comments.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 7 comments.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.

- ensure temporary GPG keyfiles are deleted before clearing traps

- log start time when waiting for publish workflow
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 9 comments.

- align rpmmacros formatting and rely on trap cleanup

- match publish run by title and start time
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.

- avoid suppressing gpg import errors

- capture start time before dispatch and document timeouts
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.

- use poll interval variables and quote outputs

- rely on trap cleanup for keyfiles
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

- match publish run by title only and fix indentation
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

- prefer newest publish run and wait before polling

- shred keyfile when available
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

- share import logic and verify rpm signatures
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 5 comments.

- define signing helper in rpm step and verify signatures

- avoid pre-loop sleep
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@polaz polaz merged commit dfe1fd3 into sw Jan 30, 2026
12 checks passed
@polaz polaz deleted the chore/trigger-repo-publish branch January 30, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build packages should trigger repo publish via org bot

2 participants