Skip to content

refactor(ci): drop redundant if condition in main.yml#61

Merged
3alpha merged 2 commits into
masterfrom
refactor/drop-redundant-if
Jul 9, 2026
Merged

refactor(ci): drop redundant if condition in main.yml#61
3alpha merged 2 commits into
masterfrom
refactor/drop-redundant-if

Conversation

@3alpha

@3alpha 3alpha commented Jul 9, 2026

Copy link
Copy Markdown
Member

Context

The release job had a broad if: condition (github.event_name == '\''push'\'' || ... == '\''workflow_dispatch'\'') that just re-checked the event type. The trigger already filters by event, so the if is always true (dead code). It also forgot repository_dispatch, which is supported by the rest of the dappnode org and the SDK.

Approach

  • Drop the if: condition on the release job.
  • Add repository_dispatch to the on: triggers (so external API dispatches also fire the release, matching the other repos).
  • pi-hole: also bump actions/setup-node v4 → v6 to match the other repos.

The resulting pattern is now identical to the other dappnode packages that already went through this refactor (DMS, DNP_IPFS, DNP_NOTIFICATIONS, n8n, obol-generic, juno-generic, Hermes-agent, openclaw, tailscale).

Test instructions

  1. Push a commit to a non-default branch → Build workflow runs once, posts an IPFS hash comment.
  2. Push a commit to the default branch → Main workflow runs the release.
  3. Run workflow_dispatchMain workflow runs the release.

The release job had a broad `if:` condition that just re-checked the
event type. Simplify: filter in the trigger, drop the if.

Also add `repository_dispatch` to the triggers for consistency.
@3alpha 3alpha self-assigned this Jul 9, 2026
@tropibot

tropibot Bot commented Jul 9, 2026

Copy link
Copy Markdown

Dappnode bot has built and pinned the built packages to an IPFS node, for commit: da42d23

This is a development version and should only be installed for testing purposes.

  1. Package bitcoin.dnp.dappnode.eth

Install link

Hash: /ipfs/QmNpGqLfq6p3FZ8jc9P8cSkGpE6UXdNoxKyWrFA3AidYi8

(by dappnodebot/build-action)

@3alpha 3alpha merged commit 7362270 into master Jul 9, 2026
1 check passed
@3alpha 3alpha deleted the refactor/drop-redundant-if branch July 9, 2026 09:09
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