Skip to content

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

Merged
3alpha merged 1 commit into
mainfrom
refactor/drop-redundant-if
Jul 9, 2026
Merged

refactor(ci): drop redundant if condition in main.yml#12
3alpha merged 1 commit into
mainfrom
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: 5982ad6

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

  1. Package portainer.dnp.dappnode.eth

Install link

Hash: /ipfs/QmQTbUodp7b53NLTj17MjVJqZijzqpnkgACwR85xT8EBqj

(by dappnodebot/build-action)

@3alpha 3alpha merged commit 20208f1 into main Jul 9, 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