Skip to content

Add build workflow - #2

Merged
timkpaine merged 2 commits into
mainfrom
tkp/add-build-workflow
Sep 1, 2026
Merged

Add build workflow#2
timkpaine merged 2 commits into
mainfrom
tkp/add-build-workflow

Conversation

@timkpaine

Copy link
Copy Markdown
Member

Runs ./initialize-variables on push, pull request, and manual dispatch,
then checks that COMMIT_MESSAGE is non-empty and FULL_BUILD is a boolean.

Writing this surfaced three problems in the action that the test does not
paper over:

  1. In the push step, if: is nested one level too deep — it sits under
    env: instead of on the step. The step therefore runs on every event and
    sets an env var literally named if. Because its output is first in the
    || chain for FULL_BUILD, it shadows the pull-request step, so
    [ci-full] in a PR title never takes effect.
  2. The workflow_dispatch branch reads git log HEAD^2, which only resolves
    on a merge commit. A manual run on a branch head yields an empty
    COMMIT_MESSAGE, so this workflow will fail when dispatched by hand until
    that is fixed.
  3. The declared full input is never referenced by any step, so passing it
    has no effect. The manual path reads github.event.inputs.ci-full
    instead.

Left alone here since they change behaviour.

Runs initialize-variables and checks its outputs.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
The COMMIT_MESSAGE output referenced a step id that does not exist, so it
was always empty. The push step's if: was nested under env:, so it ran on
every event and shadowed the pull request path. The manual path read
HEAD^2, which does not resolve on a branch head.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@timkpaine
timkpaine merged commit cd11f50 into main Sep 1, 2026
1 check passed
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.

1 participant