Skip to content

ci: use dappnode-build-hash reusable workflow#165

Open
3alpha wants to merge 3 commits into
masterfrom
refactor/use-dappnode-build-hash
Open

ci: use dappnode-build-hash reusable workflow#165
3alpha wants to merge 3 commits into
masterfrom
refactor/use-dappnode-build-hash

Conversation

@3alpha

@3alpha 3alpha commented Jul 8, 2026

Copy link
Copy Markdown
Member

Context

This repo's main.yml ran a build-test step with --skip_save, which never pinned to IPFS or posted a comment on the PR. As a result tropibot PRs (e.g. #162) had no build artifact for testers to install.

Approach

  • Add .github/workflows/build.yml — a thin stub that calls the new dappnode/workflows/.github/workflows/dappnode-build-hash.yml@master reusable workflow with secrets: inherit. Pins to Pinata and posts the IPFS hash comment on every push (non-default branch) and PR.
  • Slim .github/workflows/main.yml to the release job only. Drop build-test (now handled by build.yml), drop the pull_request trigger from main, upgrade actions/checkout to v7 and add Node 24 setup.

Test instructions

  1. Open a test PR or push to a feature branch.
  2. Verify the Build workflow runs and posts a comment with an IPFS install link and hash tagged (by dappnodebot/build-action).
  3. After merge to master, the Main workflow should run the release.

Replaces the inlined build-test (which used `--skip_save` and never
posted an IPFS hash on PRs) with a thin caller for the new
`dappnode/workflows/.github/workflows/dappnode-build-hash.yml@master`
reusable workflow. `build.yml` now handles both push and PR events;
`main.yml` is reduced to the release job only.

Also upgrades `actions/checkout` to v7 and adds Node 24 setup for the
release job.
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

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

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

  1. Package dms.dnp.dappnode.eth

Install link

Hash: /ipfs/QmYLahyTo2ZZfhoNvtsonYgiEgdtLfuGRnbM6V21cjaW3m

(by dappnodebot/build-action)

3alpha added 2 commits July 8, 2026 17:08
The `push` event already fires when tropibot pushes commits to the
feature branch, so the build, IPFS pin, and PR comment all happen
once per commit. The `pull_request` event was firing the same
workflow a second time as a no-op (--skip_save test build).

The reusable workflow SDK auto-detects the event: `push` to a
non-default branch builds + pins + comments, `push` to default does
a test build, and (now unused) `pull_request` would do a test build.
@3alpha 3alpha self-assigned this Jul 8, 2026
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