Skip to content

CI: Refactor of PR HTML generator workflow - #5050

Merged
Mynacol merged 2 commits into
RSS-Bridge:masterfrom
Mynacol:ci-pr
Jul 24, 2026
Merged

Mynacol merged 2 commits into
RSS-Bridge:masterfrom
Mynacol:ci-pr

Conversation

@Mynacol

@Mynacol Mynacol commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #5048 by splitting HTML generation and privileged upload/comment tasks.
Also contains fixes for forked repos so that the container build doesn't run into errors.

I tested this on my fork and it seems to work now.

Mynacol added 2 commits July 24, 2026 18:56
- Only push to Docker Hub if we can assume that credentials are
  available (no, you cannot access secrets.DOCKER_PASSWORD in the
  `if` there)
- Push to the GHCR name of the current repo, fixing forks
- Also push long SHA labels to easily use them in PR HTML Generator
This splits the workflow into two. The main functionality testing the PR
is run as unprivileged pull_request workflow and uploads the results as
artifacts. The privileged workflow_run workflow takes these, uploads
them to GH Pages and writes/updates a comment. The latter does not
interact with the PR content any further.

Controversial change: Try to use the prebuilt base/current container
instead of building it again inside of this action. With unfavorable
timing, this can lead to spurious errors.

This fixes RSS-Bridge#5048
@Mynacol
Mynacol merged commit fd17579 into RSS-Bridge:master Jul 24, 2026
17 of 18 checks passed
@Mynacol
Mynacol deleted the ci-pr branch July 24, 2026 17:03
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.

Refusing to check out fork pull request code from a 'pull_request_target' workflow.

1 participant